mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
Rebuilt shaders.
This commit is contained in:
parent
c26f8f4718
commit
116efe21b0
3 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ void main()
|
|||
normalize(v_normal)
|
||||
);
|
||||
|
||||
vec3 normal = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0;
|
||||
vec3 normal;
|
||||
normal.xy = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0;
|
||||
normal.z = sqrt(1.0 - dot(normal.xy, normal.xy) );
|
||||
vec3 view = -normalize(v_view);
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue