Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] rng in thread context?


Chronological Thread 
  • From: Dylan Lacewell <lacewell@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [MANTA] rng in thread context?
  • Date: Thu, 08 Mar 2007 18:18:33 -0700


Is there a way to get a stream of random numbers in a surface shader? I don't see a random number generator exposed in the thread context, so I'm going to hack in my own for now.

I'm writing an ambient occlusion shader which jitters the occlusion rays. I can't use a local random number generator because that will give each shading point the same set of occlusion rays, which causes structured artifacts.

D






Archive powered by MHonArc 2.6.16.

Top of page