Skip to content
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

Lights extension #92

Merged
merged 37 commits into from
Nov 14, 2018
Merged

Lights extension #92

merged 37 commits into from
Nov 14, 2018

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2018

Implements the KHR_lights_punctual extension.

  • Directional lights
  • Point lights
  • Spot lights

Benjamin Schmithüsen added 29 commits November 12, 2018 12:06
…s uniform and applied that to UniformLight
@ghost ghost changed the title Lighting: Directional lights Lights extension Nov 13, 2018
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just the issue with the default value for the range. I haven't tested it yet, but I think it will happen if range isn't set in the properties for the spot light. We might want to find some example gltf scenes to try it out (if there are any). Or craft our own tests and submit it to e.g. glTF-Sample-Models.

src/light.js Outdated Show resolved Hide resolved
src/light.js Show resolved Hide resolved
src/light.js Show resolved Hide resolved
src/renderer.js Outdated Show resolved Hide resolved
src/shaders/metallic-roughness.frag Outdated Show resolved Hide resolved
src/viewer.js Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Nov 14, 2018

@UX3D-jansson should be all good now

@ghost ghost self-assigned this Nov 14, 2018
@ghost
Copy link

ghost commented Nov 14, 2018

Feel free to merge when you feel ready!

@UX3D-nopper UX3D-nopper merged commit 2500295 into reference-viewer Nov 14, 2018
@ghost ghost deleted the feature/LightsExtension branch November 14, 2018 14:20
emackey pushed a commit that referenced this pull request Mar 3, 2021
made tab content scrollable (GSVN-210)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant