-
-
Notifications
You must be signed in to change notification settings - Fork 744
Conversation
df61eb1
to
9efa9fe
Compare
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 went through quickly and it seems good. Will do a full review later (but don't wait on me to merge if everything is fine)
The
I got around it in #638 by calling |
Ah, that was a miss from an earlier PR, all passes should call setup_textures, the |
Fixed 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.
LGTM! Thanks!
I'll check later today if I get time |
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.
Thanks!
Offset((f32, f32), (f32, f32)), | ||
} | ||
|
||
impl InterpolationPrimitive for MaterialPrimitive { |
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'm not too sure I understand the point of adding a trait if you just panic on all functions..?
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.
Because of the trait bound on the interpolation functions in minterpolate that we use. I will implement these for some of the variants later on. For now we can only use step interpolation that won't actually call any of the functions
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.
👍
@@ -101,8 +101,12 @@ pub(crate) fn set_light_args( | |||
pub(crate) fn setup_light_buffers(builder: &mut EffectBuilder) { | |||
builder | |||
.with_raw_constant_buffer("FragmentArgs", mem::size_of::<FragmentArgs>(), 1) | |||
.with_raw_constant_buffer("PointLights", mem::size_of::<PointLight>(), 128) | |||
.with_raw_constant_buffer("DirectionalLights", mem::size_of::<DirectionalLight>(), 16) | |||
.with_raw_constant_buffer("PointLights", mem::size_of::<PointLightPod>(), 128) |
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.
Can't this be user defined? (out of the scope of this PR, I assume?)
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.
It needs to match the size in the shader I believe
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.
https://computergraphics.stackexchange.com/questions/5323/dynamic-array-in-glsl?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
It appears that what I was thinking of doesn't work.
👍
bors r+ |
641: feat: Add texture animation r=Xaeroxe a=Rhuagh Supports swapping textures (using indexing into a `MaterialTextureSet` resource) and modifying offset into a texture. The PR also adds support for targeting parts of a texture, using a `Material` defined offset. Material only support the `Step` interpolation function, all other functions will result in a panic (except possibly a user supplied function). <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/amethyst/amethyst/641) <!-- Reviewable:end --> 648: fix: Update winit+glutin+gfx_window_* r=Xaeroxe a=Rhuagh Fixes #544. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/amethyst/amethyst/648) <!-- Reviewable:end --> Co-authored-by: Simon Rönnberg <seamonr@gmail.com>
644: feat: Deferred start animation r=Xaeroxe,jojolepro a=Rhuagh Depends on #641. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/amethyst/amethyst/644) <!-- Reviewable:end --> Co-authored-by: Simon Rönnberg <seamonr@gmail.com>
638: Feature/634/sprite rendering and animation r=jojolepro,Xaeroxe a=azriel91 Attempt at sprite animation: #634. This is branched off #641. ![example](https://user-images.githubusercontent.com/2993230/39100375-798d6d82-46dd-11e8-8869-550fcb0fe887.gif) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/amethyst/amethyst/638) <!-- Reviewable:end --> Co-authored-by: Azriel Hoh <azriel91@gmail.com>
Supports swapping textures (using indexing into a
MaterialTextureSet
resource) and modifying offset into a texture.The PR also adds support for targeting parts of a texture, using a
Material
defined offset.Material only support the
Step
interpolation function, all other functions will result in a panic (except possibly a user supplied function).This change is