Commit 9ebd1676 by Kai Westerkamp

wireframe change

parent 92b2ed95
...@@ -55,11 +55,11 @@ void amplify(float d, vec4 newColor, float scale){ ...@@ -55,11 +55,11 @@ void amplify(float d, vec4 newColor, float scale){
void addWireframe(){ void addWireframe(){
//Wireframe rendering //Wireframe rendering
if( wireframe == true){ 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)); float d = min(gTriDistance.x,min(gTriDistance.y,gTriDistance.z));
amplify(d, vec4(0.0,1.0,0.0,ALPHA),30); 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