• Hey! Register here to create your account, engage with the community, and talk about what is new!

i made a shader (yay)

NPCJerryClick

New member
Joined
Oct 30, 2022
Messages
4
Reaction score
2
C-like:
#version 150

uniform sampler2D DiffuseSampler;

uniform vec4 ColorModulate;

in vec2 texCoord;

out vec4 fragColor;

void main(){
    vec4 color = texture(DiffuseSampler, texCoord) * ColorModulate;
    fragColor = vec4(color.r/0, color.g/0, color.b/0, 1); // they said i couldnt divide by zero. i'll show them
}
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,254
Reaction score
351
is it optimized tho? making a shader isn't **that** hard, making it run on older hardware is the hard part
 
Top Bottom