Skip to content

Shader uniforms capacity #1625

Answered by hajimehoshi
Zyko0 asked this question in Q&A
Apr 30, 2021 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Disclaimer: I'm not an expert shading-language programmer.

This depends on how much uniform data you need, but in general, using a texture as a data array is the only way to go so far.

Creating a texture containing my data
Using a texture with ebiten, I don't know of a way to keep the precision of my float values.

Yes, the precision might matter. Could you give an example of the shapes data you want to pass to the shader?

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Zyko0
Comment options

@hajimehoshi
Comment options

@hajimehoshi
Comment options

@Zyko0
Comment options

@hajimehoshi
Comment options

Answer selected by Zyko0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants