playcanvas / engine

Powerful web graphics runtime built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.73k stars 1.36k forks source link

Feature Request - Displacement Map #5554

Open defektu opened 1 year ago

defektu commented 1 year ago

Displacement map vertex shader would be a cool feature to implement.

Managed to prepare a project with displacement effect by replacing transformVS.

Here is the Project Link (Working properly with lights and shadows)

Screenshots

Displacement Effect in use: image

My try on trying to create it in engine: (can provide a PR but it is not working as intended)

Screenshots

image

Issues while engine implementation :

Recommendations:

mvaligursky commented 1 year ago

Hey ... that's pretty exciting. Feel free to create a PR and we can discuss it there perhaps?

defektu commented 1 year ago

Created a draft pull request #5573