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

[Merged by Bors] - examples: add screenspace texture shader example #4063

Conversation

jakobhellermann
Copy link
Contributor

Adds a new shader example showing how to sample a texture with screenspace coordinates, similar to the end portal in minecraft.

screenspace_uv.mp4

I just used the already existent models/FlightHelmet/FlightHelmet_Materials_LensesMat_OcclusionRoughMetal.png texture but maybe we should use a dedicated texture for the example. Suggestions welcome.

@jakobhellermann jakobhellermann added A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples labels Feb 28, 2022
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Feb 28, 2022
examples/README.md Outdated Show resolved Hide resolved
Co-authored-by: MrGVSV <49806985+MrGVSV@users.noreply.github.com>
@cart
Copy link
Member

cart commented Feb 28, 2022

bors r+

bors bot pushed a commit that referenced this pull request Feb 28, 2022
Adds a new shader example showing how to sample a texture with screenspace coordinates, similar to the end [portal in minecraft](https://bugs.mojang.com/secure/attachment/163759/portal_frame_112.gif).

https://user-images.githubusercontent.com/22177966/156031195-33d14ed8-733f-4d9e-b1da-0fc807c994a5.mp4

I just used the already existent `models/FlightHelmet/FlightHelmet_Materials_LensesMat_OcclusionRoughMetal.png` texture but maybe we should use a dedicated texture for the example. Suggestions welcome.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
@bors
Copy link
Contributor

bors bot commented Feb 28, 2022

Build failed:

@cart
Copy link
Member

cart commented Feb 28, 2022

(example readme name doesn't match the example name)

@alice-i-cecile alice-i-cecile removed the S-Needs-Triage This issue needs to be labelled label Feb 28, 2022
@alice-i-cecile
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Feb 28, 2022
Adds a new shader example showing how to sample a texture with screenspace coordinates, similar to the end [portal in minecraft](https://bugs.mojang.com/secure/attachment/163759/portal_frame_112.gif).

https://user-images.githubusercontent.com/22177966/156031195-33d14ed8-733f-4d9e-b1da-0fc807c994a5.mp4

I just used the already existent `models/FlightHelmet/FlightHelmet_Materials_LensesMat_OcclusionRoughMetal.png` texture but maybe we should use a dedicated texture for the example. Suggestions welcome.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
@bors bors bot changed the title examples: add screenspace texture shader example [Merged by Bors] - examples: add screenspace texture shader example Feb 28, 2022
@bors bors bot closed this Feb 28, 2022
kurtkuehnert pushed a commit to kurtkuehnert/bevy that referenced this pull request Mar 6, 2022
Adds a new shader example showing how to sample a texture with screenspace coordinates, similar to the end [portal in minecraft](https://bugs.mojang.com/secure/attachment/163759/portal_frame_112.gif).

https://user-images.githubusercontent.com/22177966/156031195-33d14ed8-733f-4d9e-b1da-0fc807c994a5.mp4

I just used the already existent `models/FlightHelmet/FlightHelmet_Materials_LensesMat_OcclusionRoughMetal.png` texture but maybe we should use a dedicated texture for the example. Suggestions welcome.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants