mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
demos: set 4th component of texcoord to 1.0
Avoid potential randomness in resulting texcoords.
This commit is contained in:
parent
cade071d52
commit
6ff1a5385e
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ void main()
|
|||
float two_n_dot_u = 2.0 * dot(n, u);
|
||||
vec4 f;
|
||||
f.xyz = u - n * two_n_dot_u;
|
||||
f.w = 1.0;
|
||||
|
||||
// outputs
|
||||
normal = n;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue