Finally working cubemap
This commit is contained in:
1 parent
d132060e19
commit
f413bbe265
16 files changed
+406
-119
No files matched your search
@@ -3,6 +3,7 @@ uniform samplerCube Env;
|
||||
varying vec3 dir;
|
||||
|
||||
void main(){
|
||||
gl_FragColor = textureCube(Env, dir);
|
||||
gl_FragColor = textureCube(Env, normalize(dir));
|
||||
//gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user