Community Forum

Pixel Shader

Forum Overview >> Scripting

CategoryScripting
Created28.09.2015 16:35


Marcel Schmidt (dresser98) 28.09.2015 16:40
Hey,

Iam thinking about how cool it would be if I can add some nice Pixel Shaders to Farming Simulator (Something like lensflare effect or so). But I dont now how I can implement the shader to the game, because shader must attached to a material of a object. So it is possible to add Pixel Shaders and how I can get the ScreenTexture when it is possible?

Marcel Schmidt (dresser98) 02.10.2015 18:31
Thats a very specific question , but I hope you can help me.

Emil Drefers (Unknown) 05.10.2015 08:55
Hi,

an idea might be to place a transparent quad in front of the player's camera and apply the effects to its material.
But, I'm not sure if that is the best idea ;)

Cheers,
Emil

Marcel Schmidt (dresser98) 07.10.2015 18:56
Thats a nice idea, but there is one problem left. If I want a Grayscale Shader for example, I need the renderimage to grayscale. Do you know how I can manage this?

Marcel Schmidt (dresser98) 20.10.2015 19:12
Okay, now I check that.

Thank you Emil!

One question is remaining. Is there anything like a Script Documentation about the specific shader programming in Farming Simulator planned?

Emil Drefers (Unknown) 05.11.2015 16:06
Hi,

as fas a I know we are not planning to give more details about the shader structure.

But if you take your time and investigate all the available shaders, I'm sure you will find some usefull stuff.

Greyscale is however unlikely to work (just a guess), but you can always suck the color out of a RGB image ;)

Cheers,
Emil


Note: Log in to post. Create a new account here.