Common.MatDefs.ShaderNodes.Environment.envMapping100.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
The newest version!
#extension GL_ARB_shader_texture_lod : enable
#extension GL_EXT_shader_texture_lod : enable
void main(){
//@input vec3 refVec the reflection vector
//@input samplerCube cubeMap the cube map
//@output vec4 color the output color
#ifdef GL_ES
#ifdef GL_EXT_shader_texture_lod
color = textureCubeLodEXT(cubeMap, refVec, 0.0);
#else
color = textureCube(cubeMap, refVec);
#endif
#else
color = textureCubeLod(cubeMap, refVec, 0.0);
#endif
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy