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

Additional work to README appendix #53

Merged
merged 6 commits into from
Oct 19, 2017
Merged

Conversation

snagy
Copy link
Contributor

@snagy snagy commented Oct 16, 2017

Added the Schlick BRDF model, the microfacet distribution and the Lambert diffuse to the README.

Also removed the rendered output gifs; they're out of date, and I want to encourage people to just look at the sample instead of maintaining those.

snagy added 2 commits October 16, 2017 15:18
Update some of the equations in the analytic appendix; include the base
lighting model, added the missing microfacet and lambertian diffuse,
removed outdated output gifs
@emackey
Copy link
Member

emackey commented Oct 17, 2017

Great to see this project get some attention. @moneimne Are you still available to take a peek at this sometime?

@moneimne
Copy link
Contributor

My bandwidth for the next month is going to be very limited, so hopefully I'll be able to contribute after then!

@emackey
Copy link
Member

emackey commented Oct 17, 2017

OK.

@abwood any thoughts?

@emackey
Copy link
Member

emackey commented Oct 17, 2017

@snagy One thing I noticed is the metal/rough images still show metallic in the red channel instead of blue. I know you didn't touch that here, but something to consider.

@abwood
Copy link
Contributor

abwood commented Oct 19, 2017

This is great, adding a much needed intro for the appendix, thanks @snagy! Lets fix the metal/rough images in a separate issue/pr.

snagy added 2 commits October 19, 2017 09:12
Fix up the sRGB handling to properly light in linear space.  Also fixed
sRGB on platforms that don't support the SRGB extension.
put the right cutoff value in for srgb!  don't know where the old one
came from.
main.js Outdated
@@ -152,7 +150,7 @@ function init(vertSource, fragSource) {
scene: null,
hasLODExtension:gl.getExtension('EXT_shader_texture_lod'),
hasDerivativesExtension:gl.getExtension('OES_standard_derivatives'),
sRGBifAvailable: (hasSRGBExt ? hasSRGBExt.SRGB_EXT : gl.RGBA)
hasSRGBExt:gl.getExtension('EXT_SRGB')
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, looks like a bugfix of mine is being un-done here. The SRGB_EXT extension is not supported on several browsers, did you test this on multiple browsers?

Copy link
Member

Choose a reason for hiding this comment

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

Also, we shouldn't mix code changes and the readme update in the same branch/PR, as it mixes the reviews.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, not sure why these changes got pulled into this PR. i'll back this out.

@snagy snagy merged commit cc59f4a into KhronosGroup:master Oct 19, 2017
@snagy
Copy link
Contributor Author

snagy commented Oct 19, 2017

Thanks for the reviews. I'm going to pull this text into the core glTF 2.0 spec appendix about pbr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants