Common.MatDefs.ShaderNodes.Misc.Dashed100.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
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