fix shader issue + demo assets

main
Dominik Madarász 2024-01-03 22:47:14 +01:00
parent fe50bb2215
commit 00bbc208ff
5 changed files with 4456 additions and 3325 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
# Blender 4.0.2 MTL File: 'None'
# www.blender.org

File diff suppressed because it is too large Load Diff

View File

@ -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;