Review contributed examples
This commit is contained in:
parent
5f79ad9765
commit
8e15dae5ed
9 changed files with 129 additions and 145 deletions
|
@ -16,6 +16,9 @@ void main()
|
|||
// Texel color fetching from texture sampler
|
||||
vec4 texelColor0 = texture2D(texture0, fragTexCoord);
|
||||
vec4 texelColor1 = texture2D(texture1, fragTexCoord);
|
||||
|
||||
gl_FragColor = (texelColor0 + texelColor1)*0.5f;
|
||||
|
||||
float x = fract(fragTexCoord.s);
|
||||
float out = smoothstep(0.4, 0.6, x);
|
||||
|
||||
gl_FragColor = mix(texelColor0, texelColor1, out);
|
||||
}
|
|
@ -18,5 +18,8 @@ void main()
|
|||
vec4 texelColor0 = texture(texture0, fragTexCoord);
|
||||
vec4 texelColor1 = texture(texture1, fragTexCoord);
|
||||
|
||||
finalColor = (texelColor0 + texelColor1)*0.5f;
|
||||
float x = fract(fragTexCoord.s);
|
||||
float out = smoothstep(0.4, 0.6, x);
|
||||
|
||||
finalColor = mix(texelColor0, texelColor1, out);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue