jMonkeyEngine / jmonkeyengine

A complete 3-D game development suite written in Java.
http://jmonkeyengine.org
BSD 3-Clause "New" or "Revised" License
3.8k stars 1.12k forks source link

MatParamTexture: duplicate variables, missing javadoc, exceptions #2243

Closed capdevon closed 4 months ago

capdevon commented 5 months ago

This pull request addresses several issues with the MatParamTexture class:

Key improvements:

Overall, this PR enhances the MatParamTexture class by streamlining the code, providing proper documentation, and ensuring consistent behavior.

--Edit: Instead of overriding setValue in MatParamTexture, we can leverage the existing behavior in the superclass. The superclass method likely performs type and value checking, making an override unnecessary in this case (see https://github.com/jMonkeyEngine/jmonkeyengine/pull/1797).