- Home /
OnTexture drawing for cellular automata
Hi guys,
I try to implement a simple cellular automata that will fill a Zelda style (top view) 2D map. As the level sizes vary a lot I want to design it as dynamic as possible.
My thoughts: - create fully transparent texture - scale object of texture to level / area bounds - scale texture size to my desired "per tile"-resolution - Update(): draw state of the cellular automata on every frame with SetPixels()
The main problem right now is that the texture "loses" its transparency when it gets resized (it gets a milky white look). The drawing of the water map works and the texture is transparent when skipping the resize.
The texture is attached to a SpriteRenderer with "Sprite-Default" material.
Is this the way to go for a 2D growing water on a tilemap or is there an easier / faster approach?
Thank you :)
Your answer
Follow this Question
Related Questions
Get individual tile under a Tilemap Collider 0 Answers
Non transparent areas of sprites becomes transparent on android 1 Answer
Why isn't my script changing the sprite's transparency? 1 Answer
How do I have a 2D sprite fade in and out? (C#) 1 Answer
Adjusting the Transparency of the basic Island Demo water 0 Answers