How can I use this shader?
Asked Answered
R

9

0

Hello, im sorry if this is a really obvious question but, ¿how do I manage to apply this shader onto my World scene? I can't seem to find the way. Thanks.

The shader is this: https://github.com/marmitoTH/godot-psx-shaders

Reproductive answered 10/8, 2021 at 4:43 Comment(0)
T
0

I haven't taken a closer look but you are more than likely meant to apply the respective shader to each and every object you want it to affect individually.

Tertia answered 10/8, 2021 at 5:20 Comment(0)
R
0

@Megalomaniak said: I haven't taken a closer look but you are more than likely meant to apply the respective shader to each and every object you want it to affect individually.

Oh, okay, thank you :) ! But, so there is no actual way for to apply a shader into a whole scene?

Reproductive answered 10/8, 2021 at 5:33 Comment(0)
T
0

You could try a script attached to a top level node, then recursively iterate through all it's children and assign the shader as override to any node with the appropriate method but oh boy do I see this being slow. You are better off just assigning it manually via editor for best results.

You could also try developing a editor plugin for this perhaps but then if that was within your grasp you probably wouldn't need to ask in the first place.

Tertia answered 10/8, 2021 at 5:36 Comment(0)
C
0

I've applied shaders in code. It can be slow, but you only need to do it on loading a scene, so you can show a loading screen or something if it takes too long. Meaning once the game is started it will be at full performance, but benchmark it yourself because when I tested I was only doing a couple objects at a time.

Clop answered 10/8, 2021 at 5:44 Comment(0)
R
0

@Megalomaniak said: You could try a script attached to a top level node, then recursively iterate through all it's children and assign the shader as override to any node with the appropriate method but oh boy do I see this being slow. You are better off just assigning it manually via editor for best results.

You could also try developing a editor plugin for this perhaps but then if that was within your grasp you probably wouldn't need to ask in the first place.

You're right with the last thing, I got no experience in any of this :(, im going for the manual way, thanks Megalomaniak.

Reproductive answered 10/8, 2021 at 6:3 Comment(0)
C
0

Honestly if you're sure that is the look you want, then there is no problem just applying it to everything within the editor UI, but it can be tedious if you have a lot of models. In any case, you can always modify or completely change the material/shader later if you need something different. You don't have to do the manual process more than once.

Clop answered 10/8, 2021 at 7:26 Comment(0)
R
0

@cybereality said: Honestly if you're sure that is the look you want, then there is no problem just applying it to everything within the editor UI, but it can be tedious if you have a lot of models. In any case, you can always modify or completely change the material/shader later if you need something different. You don't have to do the manual process more than once.

So if I modify the shader it automatically updates all models affected by the shader?

Reproductive answered 10/8, 2021 at 9:45 Comment(0)
T
0

Yes all nodes with the same shader linked/applied to them.

Tertia answered 10/8, 2021 at 9:49 Comment(0)
R
0

Thank you both for the help guys!

Reproductive answered 10/8, 2021 at 9:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.