Commit 9ebd1676 by Kai Westerkamp

wireframe change

parent 92b2ed95
......@@ -55,11 +55,11 @@ void amplify(float d, vec4 newColor, float scale){
void addWireframe(){
//Wireframe rendering
if( wireframe == true){
float d2 = min(gPatchDistance.x,min(gPatchDistance.y,gPatchDistance.z));
amplify(d2, vec4(0.0,0.0,1.0,ALPHA),40);
float d = min(gTriDistance.x,min(gTriDistance.y,gTriDistance.z));
amplify(d, vec4(0.0,1.0,0.0,ALPHA),30);
float d2 = min(gPatchDistance.x,min(gPatchDistance.y,gPatchDistance.z));
amplify(d2, vec4(0.0,0.0,1.0,ALPHA),40);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment