x


What is the Dot3 texture combiner supposed to do with the alpha channel?

I can't figure out what it's doing, but whatever it is, it doesn't make sense to me. Here's a simple example:

Shader "Dot3 Primary" {

Properties {_MainTex ("Texture", 2D) = ""}

SubShader{Pass
{
    SetTexture[_MainTex] {Combine primary Dot3 primary, primary}
    SetTexture[nothing] {Combine previous alpha}
}}

}

Why do I see the alpha channel of the texture instead of pure black? Also, why, if I use an actual Color for primary, does something else happen? (It's some kind of multiplication or something.)

more ▼

asked Jan 25 '10 at 10:18 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

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

0 answers: sort newest
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:

x1653
x56

asked: Jan 25 '10 at 10:18 PM

Seen: 866 times

Last Updated: Jan 25 '10 at 10:18 PM