I want to add details to my terrain that are gonna change every frame update. (cloud shadows, object shadow movement etc..)
The way I'm gonna do this is to alter the top texture layer, (which is also used as a light map, and stretched across the top of the terrain), so I need to find the fastest way to..
1) Either have my texture already loaded, or as an image
2) Edit the data directly
3) display the texture on the object
4) reset the texture to its original image (with the lightmap).. then loop again
Now, what would be the fastest way of accessing the textures/image and doing this ?
I dont have much experience with textures and what types of memory is quickest at writing to, (and if its possible at all !) - so any advice would be very welcome.
Thanks !
The way I'm gonna do this is to alter the top texture layer, (which is also used as a light map, and stretched across the top of the terrain), so I need to find the fastest way to..
1) Either have my texture already loaded, or as an image
2) Edit the data directly
3) display the texture on the object
4) reset the texture to its original image (with the lightmap).. then loop again
Now, what would be the fastest way of accessing the textures/image and doing this ?
I dont have much experience with textures and what types of memory is quickest at writing to, (and if its possible at all !) - so any advice would be very welcome.
Thanks !