fix shader issue + demo assets
parent
fe50bb2215
commit
00bbc208ff
|
@ -0,0 +1,12 @@
|
||||||
|
# Blender 4.0.2 MTL File: 'None'
|
||||||
|
# www.blender.org
|
||||||
|
|
||||||
|
newmtl Default
|
||||||
|
Ns 0.000000
|
||||||
|
Ka 1.000000 1.000000 1.000000
|
||||||
|
Ks 0.000000 0.000000 0.000000
|
||||||
|
Ke 0.000000 0.000000 0.000000
|
||||||
|
Ni 1.450000
|
||||||
|
d 1.000000
|
||||||
|
illum 1
|
||||||
|
map_Kd E:/v4k/demos/art/cubemaps/stardust/posz.png
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,2 @@
|
||||||
|
# Blender 4.0.2 MTL File: 'None'
|
||||||
|
# www.blender.org
|
File diff suppressed because it is too large
Load Diff
|
@ -114,7 +114,7 @@ void main() {
|
||||||
|
|
||||||
// vec3 tangent = att_tangent.xyz;
|
// vec3 tangent = att_tangent.xyz;
|
||||||
// vec3 bitangent = cross(att_normal, att_tangent.xyz) * att_tangent.w;
|
// vec3 bitangent = cross(att_normal, att_tangent.xyz) * att_tangent.w;
|
||||||
v_normal_ws = normalize(vec3(model * vec4(v_normal, 0.))); // normal to world/model space
|
v_normal_ws = normalize(vec3(att_instanced_matrix * vec4(v_normal, 0.))); // normal to world/model space
|
||||||
v_normal = normalize(v_normal);
|
v_normal = normalize(v_normal);
|
||||||
v_position = att_position;
|
v_position = att_position;
|
||||||
v_texcoord = att_texcoord;
|
v_texcoord = att_texcoord;
|
||||||
|
|
Loading…
Reference in New Issue