All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.ShaderNodes.Misc.Dashed100.frag Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
void main(){
    startPos.xy =  (startPos * 0.5 + 0.5).xy * resolution;
    float len = distance(gl_FragCoord.xy,startPos.xy);
    outColor = inColor;
    float factor = float(int(len * 0.25));
    if(mod(factor, 2.0) > 0.0){
        discard;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy