AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.11k stars 364 forks source link

testrender: Implement basic displacement shader support #1898

Open fpsunflower opened 3 weeks ago

fpsunflower commented 3 weeks ago

Description

Associate an (optional) displacement shader with each material. On startup, we execute the displacement for each face-vertex that has a valid displacement shader assigned.

Tests

Added a new test with a displaced sphere to show how this works.

Checklist:

fpsunflower commented 3 weeks ago

Looks like I need to grab updated reference images from the CI machine.

In any case, this PR should be reviewed after we get #1897 merged.

lgritz commented 1 week ago

Update: I've merged #1897 now, so you ought to be able to rebase on top of it in main.