Sichtweite und Nebel hinzugefügt
This commit is contained in:
22
blight-assets/src/main/resources/MatDefs/BlightFog.j3md
Normal file
22
blight-assets/src/main/resources/MatDefs/BlightFog.j3md
Normal file
@@ -0,0 +1,22 @@
|
||||
MaterialDef BlightFog {
|
||||
|
||||
MaterialParameters {
|
||||
Texture2D Texture
|
||||
Texture2D DepthTexture
|
||||
Int NumSamples
|
||||
Int NumSamplesDepth
|
||||
|
||||
Color FogColor : 0.75 0.80 0.88 1.0
|
||||
Float FogDensity : 0.40
|
||||
Float FogDistance : 600.0
|
||||
// Wird jeden Frame aus der echten Kamera gesetzt (near, far)
|
||||
Vector2 FrustumNearFar : 1.0 1000.0
|
||||
}
|
||||
|
||||
Technique {
|
||||
VertexShader GLSL150: Common/MatDefs/Post/Post15.vert
|
||||
FragmentShader GLSL150: Shaders/BlightFog.frag
|
||||
|
||||
WorldParameters {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user