Stein Tool ein wenig überarbeitet

This commit is contained in:
2026-10-05 22:14:54 +02:00
parent 7069c5f632
commit c3e028b9f8
47 changed files with 1049 additions and 145 deletions

View File

@@ -9,7 +9,8 @@ MaterialDef Grass {
Vector2 WindDir : 0.0 1.0
Vector3 SunDir : 0.55 0.80 0.35
Color SunColor : 1.0 1.0 0.95 1.0
Float Wetness : 0.0
Float Wetness : 0.0
Boolean GammaCorrect : false
}
Technique {
@@ -28,8 +29,9 @@ MaterialDef Grass {
}
Defines {
HAS_COLORMAP : ColorMap
HAS_NORMALMAP : NormalMap
HAS_COLORMAP : ColorMap
HAS_NORMALMAP : NormalMap
GAMMA_CORRECT : GammaCorrect
}
}
}

View File

@@ -39,5 +39,9 @@ void main() {
color.rgb *= (1.0 - 0.18 * m_Wetness);
color.rgb *= lit;
float shine = pow(diffuse, 12.0) * m_Wetness * 0.25;
outFragColor = vec4(color.rgb + vec3(shine), color.a);
vec3 result = color.rgb + vec3(shine);
#ifdef GAMMA_CORRECT
result = pow(max(result, vec3(0.0)), vec3(1.0 / 2.2));
#endif
outFragColor = vec4(result, color.a);
}

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 468 KiB

After

Width:  |  Height:  |  Size: 468 KiB