mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-04-24 04:53:28 -04:00
Changed u_model uniform to array.
This commit is contained in:
parent
9a3e57a8b0
commit
4ab0874d53
32 changed files with 2 additions and 2 deletions
examples
02-metaballs
07-callback
runtime/shaders
dx11
fs_bump.binfs_hdr_bright.binfs_hdr_lum.binfs_hdr_lumavg.binfs_hdr_mesh.binfs_hdr_skybox.binfs_hdr_tonemap.binfs_mesh.binfs_raymarching.binvs_bump.binvs_callback.binvs_cubes.binvs_hdr_blur.binvs_hdr_bright.binvs_hdr_lum.binvs_hdr_lumavg.binvs_hdr_mesh.binvs_hdr_skybox.binvs_hdr_tonemap.binvs_instancing.binvs_mesh.binvs_metaballs.binvs_raymarching.binvs_update.bin
dx9
gles
glsl
|
@ -11,6 +11,6 @@ $output v_normal, v_color0
|
|||
void main()
|
||||
{
|
||||
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
|
||||
v_normal = mul(u_model, vec4(a_normal, 0.0) ).xyz;
|
||||
v_normal = mul(u_model[0], vec4(a_normal, 0.0) ).xyz;
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@ $output v_world, v_color0
|
|||
void main()
|
||||
{
|
||||
gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
|
||||
v_world = mul(u_model, vec4(a_position, 1.0) ).xyz;
|
||||
v_world = mul(u_model[0], vec4(a_position, 1.0) ).xyz;
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue