article thumbnail

Practical Use of Render Textures

The Knights of Unity

And even before an era of SRPs (Scriptable Render Pipelines), there was a good amount of solid features like today’s topic: Render textures. In this post I’m going to explain to you how to use render textures in your game. using legacy rendering, but the features I used work in SRPs too.

Texture 52
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

The vertical axes of textures and picture pixels is shown above, when sampling textures in shaders, that is from top to bottom, which is top-right corner. If your previous development experience is based on OpenGL, you may find that the texture on your grid is vertically flipped. to make the color in bottom darker.

Shaders 98
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

[CC 3.7.3] Shader Error?

Cocos

Another thing is I noticed that the FPS dropped after the shader was applied to some sprites. So, is there way to cache the rendered texture (including the shader effect) rather than recalculating the same thing every frame. I will check and get back to you.

Shaders 40
article thumbnail

Use shader for spine animation

Cocos

I want to use shader to draw circle on spine animation (result of animtion after render) without using texture renderer, but in shader uv0 it calculates on atlas so the result is not as expected. Can anyone help me?

Shaders 40
article thumbnail

D2 log 068 – Water shader

Catnip Games

Spent some time tinkering with shaders. Ended up with a subtle effect which is blended on top of the pre-rendered water surface. I also tried distortion for the bottom layer but UV wrapping is a problem because the tiles are in a texture atlas. Putting tiles in an array texture instead of an atlas would give me more options.

Shaders 52
article thumbnail

Label Plus – An SDF-based BMFont generation and rendering plug-in is here!

Cocos

The issue for most developers is knowing how to use SDF with shaders to achieve these effects. One developer has built an excellent extension that allows you to not worry about this and develop more font styles, saving the shaders for you. Thanks to Signed Distance Fields or SDF, you can do this and so much more with them.

Render 98
article thumbnail

Identifying Shader Limiters with the Shader Profiler in NVIDIA Nsight Graphics

Nvidia

and later feature the new Real-Time Shader Profiler, the first temporal sampling profiler for GPU shaders. and later feature the new Real-Time Shader Profiler, the first temporal sampling profiler for GPU shaders. This profiler enables you to examine the most expensive shaders at each moment in your frame.

Shaders 52