diff options
| author | victorfisac <[email protected]> | 2016-02-26 14:32:30 +0100 |
|---|---|---|
| committer | victorfisac <[email protected]> | 2016-02-26 14:32:30 +0100 |
| commit | ce56fcb1eda06385b88c1a906f0968d742ff8130 (patch) | |
| tree | 4c82fa8ce61db1ae4af3ab1e174dd8c7d5918919 /shaders/gl330/cross_hatching.fs | |
| parent | f582ab06add085594f2579ee6e7d625212abd204 (diff) | |
| parent | 75a73d94171051037fcf670852877977d9251520 (diff) | |
| download | raylib-ce56fcb1eda06385b88c1a906f0968d742ff8130.tar.gz raylib-ce56fcb1eda06385b88c1a906f0968d742ff8130.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/master'
Diffstat (limited to 'shaders/gl330/cross_hatching.fs')
| -rw-r--r-- | shaders/gl330/cross_hatching.fs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/shaders/gl330/cross_hatching.fs b/shaders/gl330/cross_hatching.fs index e2362212..6f5df964 100644 --- a/shaders/gl330/cross_hatching.fs +++ b/shaders/gl330/cross_hatching.fs @@ -5,20 +5,20 @@ in vec2 fragTexCoord; out vec4 fragColor; uniform sampler2D texture0; -uniform vec4 tintColor; +uniform vec4 fragTintColor; // NOTE: Add here your custom variables -float hatchOffsetY = 5.0f; -float lumThreshold01 = 0.9f; -float lumThreshold02 = 0.7f; -float lumThreshold03 = 0.5f; -float lumThreshold04 = 0.3f; +float hatchOffsetY = 5.0; +float lumThreshold01 = 0.9; +float lumThreshold02 = 0.7; +float lumThreshold03 = 0.5; +float lumThreshold04 = 0.3; void main() { vec3 tc = vec3(1.0, 1.0, 1.0); - float lum = length(texture2D(texture0, fragTexCoord).rgb); + float lum = length(texture(texture0, fragTexCoord).rgb); if (lum < lumThreshold01) { |
