Shader Laboratory
842 subscribers
265 photos
15 videos
59 files
404 links
Shader Laboratory
a channel about shaders in telegram

ID : @smkgames

MyStack : goo.gl/smMuqe 😎👌
Download Telegram
https://www.instagram.com/p/B44Y7pWn-n6/

Someone asked me how to make this effect?



this effect is consists of two part
این افکت از دو بخش تشکیل شده
этот эффект состоит из двух частей

1. world space mask
2. voxel

I explained world space mask here
من قبلاً world space mask رو اینجا توضیح دادم
Я объяснил миру космическую маску здесь

https://gamedev.stackexchange.com/questions/170041/how-can-i-fade-player-character-when-he-goes-inside-or-outside-of-the-area/170042#170042

https://twitter.com/ShaderGuy/status/1218156517083570179?s=20

to voxelizing you can use mathematics and SDF (Signed Distance Field) but in this way you should make everything with math

برای voxelize کردن می تونی از شیدر استفاده کنی
یا باید کامل به صورت SDF (Signed Distance Field) باشه یعنی با ریاضیات محاسبه بشه حتی مدل سه بعدی هم با ریاضیات باشه

для вокселизации вы можете использовать математику и SDF (поле расстояния со знаком), но таким образом вы должны делать все с математикой


https://www.shadertoy.com/results?query=voxel

another way is using Compute Shader and RenderTexture for volume texture

Другой способ - использовать Compute Shader и RenderTexture для объемной текстуры.

و یا با استفاده از RenderTexture و Compute Shader
این روش تو اندروید جواب نمیده چون Compute Shader تو بعضی از پلتفرم ها پشتیبانی نمیشه
البته می تونی با CPU آبجکت هارو Voxelize کنی ولی خب شاید لگ بزنه


https://github.com/mattatz/unity-voxel

another way is voxelizing model in houdini and using VAT (Vertex Animation Texture)

Другой способ - это вокселизация модели в houdini и использование НДС (Vertex Animation Texture).

یک روش دیگه هم استفاده از هودینی و VAT (Vertex Animation Texture) هست

https://github.com/keijiro/HdrpVatExample



also you can voxelize your 3d model by Geometry Shader

یک روش دیگه هم استفاده از Geometry Shader هست


также вы можете вокселизировать свою 3d модель с помощью Geometry Shader

https://www.geeks3d.com/20160531/mesh-voxelization/ere
Привет русские друзья
Отныне я тоже буду писать по-русски😊
Присоединяйтесь к нам
Shader Laboratory
Photo
framebuffer is a video output device that drives a video display from a memory buffer containing a complete frame of data.
Example on the left
Frame Buffer Architecture of Raster Displays
Each pixel requires at least 3 bytes. One byte for each primary color.
Sometimes combined with a look-up table per primary
Each pixel can be one of 2^24 colors
Worry about your Endians
Indexed-Color Frame Buffers
Each pixel uses one byte
Each byte is an index into a color map
If the color map is not updated synchronously then Color-map flashing may occcur.
Color-map Animations
Each pixel may be one of 2^24 colors, but only 256 color be displayed at a time
High-Color Frame Buffers