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

Common.MatDefs.Water.SimpleWater.j3md Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
MaterialDef Simple Water {

    MaterialParameters {
        Texture2D water_reflection
        Texture2D water_refraction
        Texture2D water_depthmap
        Texture2D water_normalmap -LINEAR
        Texture2D water_dudvmap -LINEAR
        Vector4 waterColor
        Vector3 lightPos
        Float time
        Float waterDepth
        Float distortionScale
        Float distortionMix
        Float texScale
        Vector2 FrustumNearFar
        Float waterTransparency
    }

    Technique {
        VertexShader GLSL100 GLSL150:   Common/MatDefs/Water/simple_water.vert
        FragmentShader GLSL100 GLSL150: Common/MatDefs/Water/simple_water.frag

        WorldParameters {
            WorldViewProjectionMatrix
            WorldViewMatrix
            Resolution
            CameraPosition
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy