effekseer / EffekseerForCocos2d-x

MIT License
42 stars 18 forks source link

Texture scroll issue #25

Open dantonov opened 4 years ago

dantonov commented 4 years ago

Hello, I have struggled issue while texture is scrolling in custom shader on android devices. I have noticed, that time is used to scroll texture further and further, time is forwarded to shader with "predefined_uniform" in generated pixel shader. Also it is look like that time - is time since application started, not the same as livetime of a particle. As a result, after a some time goes up, texture has huge pixel artifacts.

PS: I have debugged method "shader_->SetConstantBuffer()", and even if this code: https://gyazo.com/cd4ce187d75270ae07e13b3d5039d9b1 not executed(material is not custom), predefined_uniform is set with time in other way.

durswd commented 4 years ago

This time means that a time from startup. It is a correct behavior. It is better to add a mod node to solve it.

durswd commented 4 years ago

at least, I fix Moving UV node

durswd commented 4 years ago

Excuse me. I didn't change Moving UV node. Please add a mode node