implement lighmap shading
This commit is contained in:
parent
cf0239c76e
commit
64396b28b9
6 changed files with 20 additions and 10 deletions
|
@ -41,6 +41,11 @@ public enum Shader {
|
|||
context.vec("max_vert_dist", Client.CLIENT.lightDistVert);
|
||||
context.vec("max_cam_dist", Client.CLIENT.lightDistCam);
|
||||
context.integer("n_lights", 0);
|
||||
|
||||
context.color3("specular", 0xffffff);
|
||||
context.vec("shine", 1.0f);
|
||||
// context.vec("density", density);
|
||||
|
||||
GlState.setActiveTexture(GL46.GL_TEXTURE0);
|
||||
// glBindBufferBase(GL_UNIFORM_BUFFER, 0, world->light_buf);
|
||||
}, "MAX_LIGHTS", (Supplier<Integer>)() -> Client.CLIENT.lightMaximum),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue