article thumbnail

Accessing texture data efficiently

Unity Blog

Learn about the benefits and trade-offs of different ways to access the underlying pixel data of textures in your Unity project.

Texture 117
article thumbnail

Issue with masking a render Texture

Cocos

Hello all, I have a shader that takes the alpha value of one texture and applies to a sprite frame. Do render Textures not support alpha in cocos? Basic masking functionality without using the mask component.

Texture 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

How to get an array of pixel colors from an image?

Cocos

I’m trying to make an effect of pixels appearing with transparency and sequence (first the “darkest” then the rest of the pixels). I want to achieve the effect - “so that the pixels, like water, fill the empty mouth of the river.” But I couldn’t get the array of pixel colors. I’m here to get any help.

Pixel 52
article thumbnail

How to get an array of pixel colors from an image?

Cocos

But I don’t understand whether these are rgba textures or just rgba colors that are superimposed on top of the texture. I tried to display in the picture the movement pattern of drawing the appearance of pixels. Now I understand that this o *= vec4(1, 1, 1, alpha); is rgba.

Pixel 52
article thumbnail

Comparing BCn texture decoders

The Astronauts

PC GPUs use “BCn” texture compression formats (see “Understanding BCn Texture Compression Formats” by Nathan Reed or “Texture Block Compression in Direct3D 11” by Microsoft). Why would you want that? After all, isn’t that done by the GPU, magically and efficiently? Normally, yes.

Texture 52
article thumbnail

Creating and Working with Textures in Affinity Designer

2d Game Art Guru

Creating and Working with Textures in Affinity Designer Affinity Designer Video tutorials These two new videos focus on the use of textures in Affinity Designer. Create and work with textures from photos taken with your mobile phone. It’s not entirely necessary for most texturing tasks. older tutorials ].

Texture 52
article thumbnail

Get pixel color of an image

Cocos

You can pass your render texture to Camera as a targetTexture. Or even use special custom layers for nodes that should be visible by camera with render texture target. You can use second camera for it.

Pixel 40