Getting shaders channel?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/03/2004 at 23:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Mac OSX ;
Language(s) : C++ ;---------
What's the correct way to determine the channel a shader is running in? All I found is a hack by Mikael, that seems to make a bit of an effort to get data which were easy to get in earlier SDK versions:Is that still the "right" was doing it? Or shouldn't it be done at all anyway?
Thanks!
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/03/2004 at 00:50, xxxxxxxx wrote:
Please see "Channel dependent effects" in the What's New section of the 8.503 SDK docs.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/03/2004 at 12:19, xxxxxxxx wrote:
Well, first thanks for the pointer, I really overlooked this one!
However, I can't get it to work. It compiles, but in...
if (GET_TEX_CHANNEL(sd->vd->tex->texflag) == CHANNEL_LUMINANCE) {
GET_TEX_CHANNEL(sd->vd->tex->texflag) always evaluates to 0 (==CHANNEL_COLOR), no matter in which channel the shader is used...
So, where is the pitfall here?
Thanks!
Kabe
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/03/2004 at 21:26, xxxxxxxx wrote:
Found the solution to this one... Don't use "==", but "&"...
BTW: The documentation of ChannelData->texflag in the SDK is a tad short. Seems that there's only the old variant listed.
Kabe