Russell Posted February 26, 2020 Share Posted February 26, 2020 @Marcousik same example... Scene with creepy materials and marble/shiny wood ground... So as you seen it's not imposible... You can make a scene with all creepy materials and only some marble materials in there. But you need work the Textures. Not the shader. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted February 27, 2020 Share Posted February 27, 2020 It might still be working and the reflection is just being broken up a lot. I see some blue on his leg. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
havenphillip Posted February 27, 2020 Author Share Posted February 27, 2020 On 2/26/2020 at 4:22 AM, Marcousik said: Right thx adebgamesoft and Russel Actually it would be nice to use this shader on a specific material as it seems to turn the entire scene to marble: It is so impossible to compose a scene with old creepy material and marble I know the screen space reflection shader looks for a specular texture. In around line 76: //Get specmap from gbuffer float specularity = texelFetch(texture3, ivec2(icoord*buffersize),0).a; //only compute if we hvae specularity if (specularity > 0.0f) { I haven't tried this but it could be that you could change the texture to 6 or something and just add your specular on "texture6" in slot 6 in the ones you want to have the reflective effect. Seems like it should avoid everything that doesn't have a specular there. Quote Link to comment Share on other sites More sharing options...
Marcousik Posted February 28, 2020 Share Posted February 28, 2020 On 2/26/2020 at 1:51 PM, Russell said: You can make a scene with all creepy materials and only some marble materials in there. But you need work the Textures. Not the shader. yes all right thx ? Happy it can be done. So only set the specular to 0 on material and the effect of the shader is gone, cool thing really. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.