-
Notifications
You must be signed in to change notification settings - Fork 9
Lighting & Shaders Improvements #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| @Override | ||
| public void draw(float x, float y, float scale) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the scale necessary to have in this method at this point then?
|
|
||
| public void render(IGameInstance game, IAssetManager manager, ParticleManager particles, IRenderer g, AbstractWorld world, EntityPlayer player, InteractionManager input) { | ||
| float scale = g.getWorldScale(); | ||
| calcCameraValues(manager, g); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this dot
|
|
||
| public float getTranslucentModifier(IWorld world, int x, int y, TileLayer layer, boolean skylight) { | ||
| if (world.getState(layer, x, y).get(StaticTileProps.LOG_VARIANT).isNatural()) | ||
| return skylight ? 1F : layer == TileLayer.BACKGROUND ? 0.9f : 0.8f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. separate the conditions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u literally watched me type this but ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, and both myself and ellpeck clearly laughed at you and said to change it :P
|
merge this, it is good |
Made several improvements to lighting and shaders
Also check the API and Assets PR's.