animatable textures

This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent 6102373fbc
commit 89c25c5bd9
5 changed files with 51 additions and 7 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ namespace vb01{
vec3 dir=vec3(direction.x,direction.y,direction.z);
vec3 up=vec3(upDir.x,upDir.y,upDir.z);
vec3 p=type==DIRECTIONAL?vec3(pos.x,pos.y,pos.z)-.5f*farPlane*dir:vec3(position.x,position.y,position.z);
view=lookAt(p,p+dir,up);
view=lookAt(vec3(0,30,0),vec3(0,0,0),vec3(1,0,0));
proj=ortho(-10.f,10.f,-10.f,10.f,nearPlane,farPlane);
depthMapShader->use();