Playing with CRT Shader
Using the CRT Shader on some Rose Patterns - looks pretty cool!
Look at that disco-ball-loveliness!
@Dave Cool stuff mate, trying this myself and am getting mixed results, mostly a blank screen haha
Any guidelines on the parameter ranges for the crt filter?
@Dave Interesting results, with this code nothing shows when docked.. however in handheld mode:
@Tratax Awesome! Apologies for the delay, but nice one for sorting it out yourself! The effect is so instantly cool :)
I just played with it 20 mins ago. Showed the keyboard when sourcing from framebuffer. What was the fix
You have to do the following:
screen = createImage( gwidth(), gheight(), false, image_rgba ) setDrawTarget( screen ) // Do all of your drawing here renderEffect( screen, frameBuffer, fxcrt, [ scanLines (numer of scanlines), strength (multiplier - thickness of the scanlines), focus (beam de-focusing effect between colour channels) ] ) update()
Nice, great code share @Dave. Two questions, is there a difference between
renderEffect( Screen, framebuffer..
renderEffect ( framebuffer, framebuffer... ?
and, how do you do the code share in your post?
@Tratax No problem!
If you do
renderEffect( frameBuffer, frameBuffer, ... )
Then you are trying to both read from and write to the same texture. Hence, problems! Actually, I'm really glad you asked because this should give you an error, rather than giving the super weird effects that it does.
We'll fix this in a patch of course.
To apply the code highlighting to text, put 3 back ticks above and below the chunk of text you want to make into code. So,
threebackticks ( ` )