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
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
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.
@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?
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.
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.
@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.
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.
@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?
Yes all nodes with the same shader linked/applied to them.
Thank you both for the help guys!
© 2022 - 2024 — McMap. All rights reserved.