Skip to content

KHR_materials_cmnConstant - #1095

Closed
donmccurdy wants to merge 2 commits into
KhronosGroup:masterfrom
donmccurdy:feat-khr-materials-cmnConstant
Closed

donmccurdy wants to merge 2 commits into
KhronosGroup:masterfrom
donmccurdy:feat-khr-materials-cmnConstant

Conversation

@donmccurdy

@donmccurdy donmccurdy commented Sep 10, 2017 •

Copy link
Copy Markdown
Member

Based on the syntax of #1075. For mobile devices trying to maintain 90+ FPS, I think it may be worth keeping an unlit shading model available.

@donmccurdy

Copy link
Copy Markdown
Member Author

Hm as @zellski pointed out off thread, emissiveFactor and emissiveTexture are already in the default PBR material spec, so there's nothing new here. We can set an emissive and zero out the other factors.

If an exporter specifies that something should be unlit by zeroing-out the other factors, we expect the importer to check each factor and assign the simpler shading model? I thought we'd intended for exporters to be able to provide both metal/rough and spec/gloss and let the runtime choose which to use, but this leaves us no way of specifying whether unlit shading is explicitly a fallback or not. Maybe that's OK? I'm not sure.

@donmccurdy

donmccurdy commented Sep 11, 2017 •

Copy link
Copy Markdown
Member Author

On second thought, please ignore the content of this PR for now. I will follow up on #1075.

Updated this PR, it is ready for review and feedback.

@zellski

zellski commented Sep 20, 2017

Copy link
Copy Markdown
Contributor

Perhaps open this back up, in empty/boolean form, given recent developments in #1075?

@donmccurdy
donmccurdy force-pushed the feat-khr-materials-cmnConstant branch 3 times, most recently from fcab14a to 3852fc7 Compare September 20, 2017 02:02
@donmccurdy

Copy link
Copy Markdown
Member Author

Sounds good. I've updated this as an "empty" extension, and it should be ready for review or feedback.

@donmccurdy
donmccurdy force-pushed the feat-khr-materials-cmnConstant branch from 3852fc7 to 50548ec Compare September 20, 2017 02:03
@donmccurdy

Copy link
Copy Markdown
Member Author

Closing this; going to work toward including this along with blinnPhong as a single extension. See #1111.

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.

2 participants