• Disable drawing when behind something
    3 replies, posted
I'm currently creating a stool which will draw a wireframe sphere when you hold it by calling render.DrawWireframeSphere() in a cam.3D() function. My problem is that I don't want the parts of the sphere that are below the ground or behind walls to draw. My guess is that I would use stencils for this, but I can't figure out how to use them. If someone could help me or just give me a hint I would be very happy!
Try setting the 6th argument to true.
I've tried setting it to both true and false. It just overrides the alpha of the sphere.
Then that function will not do without possibly stencils. The material has "draw through walls" property most likely.
Sorry, you need to Log In to post a reply to this thread.