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

Write to gl_FragData instead of gl_FragColor for debug commands if MRT is used #4864

Merged
merged 4 commits into from
Jan 16, 2017

Conversation

austinEng
Copy link
Contributor

Fixes (1) of #2448

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 14, 2017

Since this is a user-facing change, please update CHANGES.md. Look at example throughout that file for how to word this.

if (scene.debugShowCommands) {
if (!defined(command._debugColor)) {
command._debugColor = Color.fromRandom();
}
var c = command._debugColor;
newMain += ' gl_FragColor.rgb *= vec3(' + c.red + ', ' + c.green + ', ' + c.blue + '); \n';
if (length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and below, we are usually more explicit, e.g., length > 0

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 14, 2017

@bagnell could you do the final review and merge?

@austinEng
Copy link
Contributor Author

Updated

@bagnell bagnell merged commit 8c643de into CesiumGS:master Jan 16, 2017
@pjcozzi pjcozzi mentioned this pull request Jan 16, 2017
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.

3 participants