View Single Post
Old 25 January 2015, 03:47   #3
Leandro Jardim
Registered User
Leandro Jardim's Avatar
Join Date: Nov 2009
Location: Legoland
Age: 39
Posts: 1,223
Originally Posted by Toni Wilen View Post
What are you trying to do?

You can add your own variables to shader files if you want something that keeps its value between frames.

Or do you want some kind of frame counter variable that counts automatically?
Nothing dangerous, I think. It will be used only on my home with WinUAE.

I want to make a perlin noise effect for WinUAE, I found the algorithm in the web, but it needs a "time" value which I guess need to be replaced by some kind of frame number or some other random number.

My "problem" is that I dont know if is possible to get the current frame number of the WinUAE display, and when I try to use a random number generator in place, the seed variable is lost at every frame and resets to its default value, which then unfortunately I get an Amiga display with a static perlin noise picture on the screen.

Last edited by Leandro Jardim; 25 January 2015 at 04:31.
Leandro Jardim is offline  
Page generated in 0.04195 seconds with 10 queries