View Single Post
Old 20th January 2019, 14:23   #4
Major Dude
Join Date: Mar 2008
Location: Erlangen
Posts: 940
Hi Buzz
you already found the examples.

Yes, the number of images that can be loaded at one time is limited but I do not know to which value. I never bothered a lot about images. The number may be changeable via the config settings.

Other than that, displaying an image is very simple:
At the head of the comp shader section, tell milkdrop to load image "myimage":

sampler sampler_myimage;

Then in the shader body simply say
ret = tex2D(sampler_myimage,uv);

That is all. By manipulating uv you can affect the size, stretch, rotate, aspect correction etc. That is reasonably explained in the tutorial.

O yes, and the images must be either in the presets folder or under ..\textures.
Nitorami is offline   Reply With Quote