Is this implemented anywhere? Tess + Displacement seems pretty useless unless the normals come out nice :)
I have it in mp.dx DisneyForwardSimpleNaive.fx, turn on tesselation with PreprocessorOptions (look at its help patch) and look for displacement normal influence afair. if that’s not there, write it here
Thanks for that. Thats a big ol shader! Couldnt see a help patch btw.
Do you by any chance have a link to any reference reading / code you used to implement that part? Tis a bit tricky to isolate from the rest of whats in that pipeline.
Hope I dont sound ungrateful :)
Got something working from here btw - http://richardssoftware.net/Home/Post/27
uses normal map so can’t be used in a gsfx sadly. Does yours work the same way?
Or if you need it in your own shader look at this fxh: https://github.com/microdee/mp.fxh/blob/master/DisplaceNormal.fxh also I suggest looking at the others ;)
it uses only the greyscale displacement map without the need for a normal map. it returns a normal so it can be used at any pipeline stage you want to. look at https://github.com/microdee/mp.fxh/blob/master/PNTriangleUtils.fxh for implementation or just use that fxh out of the box. if you need even more abstraction check out https://github.com/microdee/mp.fxh/blob/master/mdpipeline.fxh
sweetness. will take a look
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.