13 lines
242 B
Plaintext
13 lines
242 B
Plaintext
|
uniform samplerCube tCube;
|
||
|
uniform float tFlip;
|
||
|
uniform float opacity;
|
||
|
|
||
|
varying vec3 vWorldDirection;
|
||
|
|
||
|
void main() {
|
||
|
|
||
|
gl_FragColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
|
||
|
gl_FragColor.a *= opacity;
|
||
|
|
||
|
}
|