All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.ShaderNodes.Environment.reflect.j3sn Maven / Gradle / Ivy

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