Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cg noise()



Hi,

I'm trying to use the Cg Standard Library noise() function, 
but it seems to always return zero.  I don't have access to
a PC right now, so I can't tell if this is a Mac issue.

Here's my test fragment shader:

void main(in float4 inColor : COLOR, out float4 outColor : COLOR)
{
	float3 intensity = abs(noise(2100)) * 10;
	outColor = float4(intensity, 1);
}

Thanks,
Josh
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.