@tyekx wrote:
Dear MonoGame Community,
I successfully implemented a shader that takes a normal map and uses it to create the illusion of bumpiness on a given surface. When I decided to generalize my solution, I realized I needed a way to automatize loading my assets, because it'll get messy very quickly. After a decent amount of research I could load my maps and shader source with a custom ModelProcessor. Right now I have a
CustomModelProcessor
and aCustomMaterialProcessor
and they pretty much work.It feels like I miss one last step, In order to use my HLSL code in a clean way, I wish to have a
NormalMapEffect
, that is derived from theEffect
class, and my idea is to override theOnApply()
method. This is done basically but I don't know where to instantiate this, so that myMesh.MeshParts
will have a type ofNormalMapEffect
(where desired). Right now, the type that I get from my content pipeline into the MeshParts isEffectMaterial
.If you could guide me I'd be very grateful
Posts: 1
Participants: 1