Problem with quilez.cg

Hello! I’m new to this board and I’m not going to pretend to be an expert on shaders, but I was told to come here to report any problems with them.

The problem in question is with the quilez.cg shader. I’ve used Quilez.OpenGL.shader for a while as one of my go-to shaders, but since the .shader type is being deprecated and cannot be stacked, I decided to switch and get with the new trend. When I tried, however, I noticed absolutely no change in display at all with the .cg version. Below is a comparison of the output of both the .shader and .cg variations.

I was told this was likely due to an error converting it from .shader to .cg, but I’m sure you can figure that out much better than I can.

Thank you for any input or aid!

Enable linear in your shader preset.

Like this:

shader #0: quilez.cg filter #0: linear scale #0: don’t care

You probably is using nearest instead linear.

I’m getting the same behavior. No compiler errors, but no effect, either. I’ll take a look at it and see if I can figure out what’s up.

D’oh. That’s seemingly fixed it. So simple, yet I would have never figured that out myself - I assumed it was a dud. Is that a common thing, some shaders not working at all unless the settings are tweaked like that?

At any rate, thank you very much for the help.

Oh yeah, that does it :stuck_out_tongue:

That was a nice aspect of the XML shaders, being able to specify things like that without a cgp.

@Tenryu It’s fairly common. You can force some things in the cgp files, so it isn’t usually a big deal, but it might be a good idea for people to put notices about that sort of thing in a comment in the cg file, as well, to minimize confusion.

D’oh. That’s seemingly fixed it. So simple, yet I would have never figured that out myself - I assumed it was a dud. Is that a common thing, some shaders not working at all unless the settings are tweaked like that?

At any rate, thank you very much for the help.[/quote]

To tell the truth, it isn’t a bug.

This shader is supposed to only run using linear sampling. It was made with that premise.

Thank you both for being patient and informative with a novice! You learn something new every day, it seems.

@hunterk - That wouldn’t be a bad idea! Or perhaps ship those requiring non-default settings with a cgp configuring them, or even with a readme? This may just be me blowing hot air, of course. :stuck_out_tongue: