pastasfuture / com.hauntedpsx.render-pipelines.psx

A scriptable render pipeline for emulating Playstation-1-style graphics on contemporary hardware.
https://twitter.com/HauntedPs1/
MIT License
387 stars 26 forks source link

Enable texture filtering for terrain details #30

Closed joshuaskelly closed 1 year ago

joshuaskelly commented 2 years ago

hpsxrp_terrain_grass_texture_filtering

Enables texture filtering for terrain grass details. Refactors PSXWavingGrassPasses.hlsl to use the texture filtering method from MaterialFunctions.hlsl. Based off my inital attempt posted on the HPSX Discord.

Currently this enables the point filtering to verify my changes. I don't believe there is a good way for users to set keywords for these materials, so the only way forward I can see is to duplicate the shaders with the keyword defined. Then users can plug whichever shader they want into the RP resources asset.

pastasfuture commented 1 year ago

Thanks for this - I'm not going to merge directly - Ill branch this feature implement some changes, and merge when its ready. Im considering exposing this option as a new PSX Terrain Volume Component, and globally swapping which keyword is in use based on the volume setting.

pastasfuture commented 1 year ago

New PR here: https://github.com/pastasfuture/com.hauntedpsx.render-pipelines.psx/pull/37