![]() Not looking for free lunches, Babylon.js is a huge free lunch alreadyįor parallax (not occlusion) mapping, you need to bind something to the `parallaxHeight` input (generally the alpha component of the normal map).įor parallax occlusion mapping, what I did to overcome the problem of sampling multiple times the texture is that it assumes that the `normalMapColor` input is coming from a `Texture` block. We need this functionality and we are intending to provide a PR, but need to understand both the problem and reservations about implementation possibilities fully, to make it easier. I’m sorry for all the questions, but I’m trying to understand the problem while lacking much of the ground-work, which I’m picking up not nearly fast enough. There is a lot of uniform preparation and other stuff, but at its core, the functionality is in the shader, right? Why can’t it be re-used in NodeMaterial? You mention reading multiple times from the normal map, isn’t this part implemented in the shader? If not, why can’t it be replicated in NodeMaterial? And last but not least, why would implementing a PerturbNormalWithParallax node as a stop-gap solution be overkill if it would provide a hacky but working solution to an otherwise unsolvable problem? In StandardMaterial and PBRMaterial parallax occlusion is activated by two defines: PARALLAX and PARALLAXOCCLUSION. PerturbNormal block activates BUMP define to do its work ![]() What I know isĪ) required functionality is in the standard shader and works with StandardMaterial and PBRMaterialī) NodeMaterial builds upon existing shaders, e.g. I feel like I’m still not understanding the issue preventing this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |