Skip to content

[Merged by Bors] - add some more pipelined-rendering shader examples#3041

Closed
jakobhellermann wants to merge 9 commits intobevyengine:mainfrom
jakobhellermann:shader-examples
Closed

[Merged by Bors] - add some more pipelined-rendering shader examples#3041
jakobhellermann wants to merge 9 commits intobevyengine:mainfrom
jakobhellermann:shader-examples

Conversation

@jakobhellermann
Copy link
Contributor

based on #3031

Adds some examples showing of how to use the new pipelined rendering for custom shaders.

  • a minimal shader example which doesn't use render assets
  • the same but using glsl
  • an example showing how to render instanced data
  • a shader which uses the seconds since startup to animate some textures

Instancing shader:
grafik
Animated shader:
animate_shader
(the gif makes it look a bit ugly)

@jakobhellermann jakobhellermann force-pushed the shader-examples branch 2 times, most recently from ed9978d to 272d3b0 Compare October 29, 2021 07:01
@jakobhellermann
Copy link
Contributor Author

Currently doesn't work because the msaa sample count doesn't match.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples hacktoberfest-accepted labels Nov 3, 2021
@jakobhellermann jakobhellermann force-pushed the shader-examples branch 2 times, most recently from 75a9c7e to 22a206b Compare November 13, 2021 10:52
@jakobhellermann
Copy link
Contributor Author

I rebased on top of #3111, msaa works now

@jakobhellermann jakobhellermann force-pushed the shader-examples branch 2 times, most recently from c985ce4 to c5bd6a0 Compare November 18, 2021 16:55
@alice-i-cecile
Copy link
Member

I am very confused by the check-missing-examples-in-docs step failing. If anyone else can spot what's wrong, please let us know!

@alice-i-cecile
Copy link
Member

@jakobhellermann I agree with the observation made on Discord about the CI; can you try it without the wikipedia link?

@jakobhellermann
Copy link
Contributor Author

@jakobhellermann I agree with the observation made on Discord about the CI; can you try it without the wikipedia link?

Yes, that was it. The missing example check is now green.

@jakobhellermann
Copy link
Contributor Author

rebased on main

@cart cart added this to the Bevy 0.6 milestone Dec 30, 2021
@cart
Copy link
Member

cart commented Jan 5, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jan 5, 2022
based on #3031 

Adds some examples showing of how to use the new pipelined rendering for custom shaders.

- a minimal shader example which doesn't use render assets
- the same but using glsl
- an example showing how to render instanced data
- a shader which uses the seconds since startup to animate some textures


Instancing shader:
![grafik](https://user-images.githubusercontent.com/22177966/139299294-e176b62a-53d1-4287-9a66-02fb55affc02.png)
Animated shader:
![animate_shader](https://user-images.githubusercontent.com/22177966/139299718-2940c0f3-8480-4ee0-98d7-b6ba40dc1472.gif)
(the gif makes it look a bit ugly)

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
@bors bors bot changed the title add some more pipelined-rendering shader examples [Merged by Bors] - add some more pipelined-rendering shader examples Jan 5, 2022
@bors bors bot closed this Jan 5, 2022
@jakobhellermann jakobhellermann deleted the shader-examples branch January 5, 2022 20:14
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