noise.script 208 B

123456789
  1. function init(self)
  2. self.time = 0
  3. end
  4. function update(self, dt)
  5. self.time = self.time + dt
  6. -- set the x component of the 'time' fragment constant in the material
  7. go.set("#model", "time.x", self.time)
  8. end