rvandoosselaer / Blocks

A block (voxel) engine for jMonkeyEngine
BSD 3-Clause "New" or "Revised" License
41 stars 14 forks source link

Deprecate old material and shaders #27

Closed rvandoosselaer closed 4 years ago

rvandoosselaer commented 4 years ago

The Material and shader files should be cleaned up. Since the introduction of the new Fluid-pbr material, the legacy Water and Water-pbr materials are deprecated.

The new Fluid-pbr material uses texture scrolling instead of the spritesheet aproach of the legacy Water and Water-pbr materials.

The default-block material should be updated to extend from PBRLighting.j3md instead of Lighting.j3md.

Edit: instead of removing all water related material definitions, create a new Fluid material definition with the texture scrolling properties. The default theme of blocks will still be based on the Phong Lighting material.

rvandoosselaer commented 4 years ago

See: https://github.com/rvandoosselaer/Blocks/commit/bb82b0b873fc487e41abdb171c718cdd22989e07