Common.MatDefs.ShaderNodes.Environment.reflect.j3sn 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!
ShaderNodeDefinitions{
ShaderNodeDefinition Reflect {
Type: Vertex
Shader GLSL100: Common/MatDefs/ShaderNodes/Environment/reflect100.vert
Documentation{
Computes the reflection vector necessary to do some environment mapping
@input vec3 position position in model space
@input vec3 normal the normal of the vertex
@input vec3 camPosition camera position in world space
@input mat4 worldMatrix the world matrix
@output vec3 refVec the reflection vector
}
Input {
vec3 position
vec3 normal
vec3 camPosition
mat4 worldMatrix
}
Output {
vec3 refVec
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy