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

Adding zero to vector causes black image to be rendered #41

Open
afd opened this issue Dec 7, 2016 · 1 comment
Open

Adding zero to vector causes black image to be rendered #41

afd opened this issue Dec 7, 2016 · 1 comment

Comments

@afd
Copy link
Member

afd commented Dec 7, 2016

[Shaders, screenshots, error log, reproduction steps, etc.] [ZIP]

WebGL links for easy reproduction:

Recipient:

recipient image

Variant:

variant image

The difference is that:

return ObjUnion(obj0(p), obj1(p));

is changed to:

return ObjUnion(obj0(p + vec3(0.0, injectionSwitch.x, 0.0)), obj1(p));

Since injectionSwitch.x is zero, this should have no (or very minimal) effect. The fact that it makes the image come out black suggests a bug.

@afd
Copy link
Member Author

afd commented Dec 7, 2016

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

No branches or pull requests

2 participants