Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Image Light Feature - GSOC 2023 #6255
Image Light Feature - GSOC 2023 #6255
Changes from 42 commits
50a0c14
dfa600c
0521694
b155bac
34e6438
916f5be
c59ae6c
8b1e19c
5287a4f
b05bca6
f6899a8
8cd5775
3c9bf12
701cbee
4c63de5
b9837dc
5546093
98af50f
8dbbff5
711c5f5
52c4d42
0121439
8e9cd8a
7cf062d
93a2428
d1c19b3
b803601
dc0ef6a
f0f3a19
02d6f00
9a0c3fc
0860bd7
0ade514
07371e8
25a711b
c04d916
9dbe8a0
5cac577
5547d7d
ff3973d
b37afe5
69008c0
d713b35
6656e90
374051b
b964403
0e7c3bc
14aed59
5d99712
4fe2890
6fec78a
94e639b
f2c0f1e
e68f9f0
6df91ec
fe5e0db
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can be a bit more specific here and say that this is what
_setImageLightUniforms
looks at to see if it needs to send uniforms to the fill shaderThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can rephrase this into sentences so it's a bit easier to read? Also, for each map, we should say what the keys and values are. E.g. for this one, it maps a
p5.Image
used byimageLight()
to ap5.Graphics
containing the combined light it sends to each direction.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one maps the input
p5.Image
to ap5.MipmapTexture
. Worth mentioning that we use a mipmap texture because it can contain light from multiple roughness levels.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slight update to this: we don't set it to true, we set it to a
p5.Image
. Instead of checking if it's true, we check if it's not nullThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can rename this to
getDiffusedTexture
for consistency?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can take out this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could mention that it's OK that it's small because it's going to be really blurry and smooth anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one probably doesn't need a comment, since it doesn't add much over the code itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just for debugging, right? We can probably remove this if block now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another spot where we can rename to
diffusedTextures
for consistencyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can take this note out now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can take this one out too