x


Telling unity about possible transparency

I'm using a GLSL fragment shader that discards some fragments. I call DrawMeshNow three times on a quad, each time modifying some shader parameters to produce a desired effect. However, only one of the quads is actually drawn by unity. I suppose this is because unity is doing some automatic depth sorting and culling (Although I have already turned depth testing off.) How can I tell unity that my shader might produce transparent "holes" when it draws a quad and that therefore it should not preclude other quads from being drawn.

more ▼

asked Jun 25 '12 at 08:24 PM

AlexFlint gravatar image

AlexFlint
32 5 7 10

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x12
x6

asked: Jun 25 '12 at 08:24 PM

Seen: 234 times

Last Updated: Jun 25 '12 at 08:24 PM