Question about crt-yah

It seems like the shadow mask doesnt follow the curvature if you use that in the shader. I think the shadow mask should also bend. Is this possible to fix?

The problem with bending the shadow mask is that it causes aliasing and moire. In fact, many of them are dependent on the monitor’s subpixels, so bending them would destroy the effect.

I see. Thanx for your answer

You are technically right, but I decided against this for the reason @hunterk pointed out. If you still want to give it a try change the following file.

crt\shaders\crt-yah\crt-yah.stage-f.h at line 70

color = apply_noise(color, color_luma, tex_coord); // use un-curved coordinates to avoid Moire-artifacts
color = apply_mask(color, color_luma, tex_coord, mask_factor);  // use un-curved coordinates to avoid Moire-artifacts

to

color = apply_noise(color, color_luma, tex_coord_curved); // use curved coordinates might cause Moire-artifacts
color = apply_mask(color, color_luma, tex_coord_curved, mask_factor);  // use curved coordinates might cause Moire-artifacts
1 Like

Wow thank you. It looks awesome actually, kinda too real to a crt :laughing: except the moire. But i wonder if some blur can fix that. However this shader gets wierd if i try to append another one after it

If you want to append additional passes, you have to set the scale_type of the last crt-yah pass to viewport.

Open crt-yah.slangp and add scale_type12 = viewport at the very end.

If not set the default is source, but for the last pass it is always viewport. Therefore I haven’t set it explicitly. But now that you want to add another pass, it has to be set explicitly, otherwise the mask effect is applied to the source resolution, instead of the screen resolution.

Okey thanx, i will test that

so i made this preset with the yah shader. It doesnt use the curved mask since it gets too much moire. I think it very closes looks like my crt that I sadly do not have space to use anymore. For some reason the picture came out less vibrant when screenshoted, i dunno why.

https://imgur.com/a/kV2Jmb4

I think this preset looks fine and it doesnt require hdr, just 4k. From some distance it looks like my old crt except the image is bigger depending on your tv.

1 Like

I’m glad you were able to achieve the desired appearance with crt-yah.

Maybe you could make the .slangp file available to others?

sure, here is the file. Iam not sure if that uploading place is fine.

here are also some more random images.

The preset you uploaded only contains a few parameter and references to “1 crt yah shadow multi.slangp”. So, it will not work for others.

Either you upload the other file too, which maybe contains another reference, or you could temporarily disable “Manage Presets - Simple Presets” and save the preset under a different name to get a complete preset with all settings and passes.

Sorry, does this work?

Yes, it does. Interesting choice, that you have selected the mono mask-pattern instead of RGB.

I have not much knowledge about the technical stuff behind crt’s, i just tried to make it look like how i see crts on my modern tv and also so it looks good on my tv. To me it is good enough from 2-3 meter.