Quantcast
Channel: Questions in topic: "shader programming"
Browsing all 169 articles
Browse latest View live
↧

Raymarching heightmap for volumetric display

Hey, I am trying to implement raymarching into a heightmap in a shader to display a volume of this heightmap. I was thinking to create a cube to raymarch into and then check whether or not the current...

View Article


How do I make a paint trail effect in ShaderGraph? Are there better ways?

Link to what I have so far: https://i.imgur.com/UzFUtrT.gif Link to ShaderGraph of the original render texture: https://i.imgur.com/orlufI0.png Link to ShaderGraph of the output render texture:...

View Article


How much operations does tex2d func take?

I'm trying to optimize my shader. But I'm stuck in choice: use sin() or tex2d()? Which one is faster and maybe anyone has a comparison list of shader functions?

View Article

Texture Blending with Clamped(Non-Repeat) Image

Hey all. I'm trying to blend two texture while using single shader and material, one texture is for background, the other is kinda logo. But when I tried to "resize" logo(from adjusting tiling and...

View Article

regarding Shader Optimization

I have a shader with 3 seperate effects on it. 2 of the effects are mapped using textures (named "_TeamTex" and "_MuzzleTex"). If the effects shouldn't trigger, the base texture _MainTex should be used...

View Article


Image may be NSFW.
Clik here to view.

PBR Shader Graph problem with material(s)

Hey guys, so I'm currently using a "programmed" PBR Shader for a cube in my game, which just dissolves the cube. My problem is, as soon as the cube is moving, its materials start glitching. ![alt...

View Article

How to write an additive HDRP shader without glow

Hi. I apologise in advance if this is a stupid question but I want to write a regular additive shader. I am using `Blend One One` in Pass and without skybox and post processing, this works. However,...

View Article

What are Shader Types?

I want to create custom shaders. What type of shader should I choose when creating shaders? Can anyone explain their features to me ? ![alt text][1] [1]: /storage/temp/185987-word-image-3.jpeg

View Article


Adapt alpha mask shader to gradual alpha increase with distance to object center

Hi! I'm very new to Shaders in Unity but have been able to develop something that resembles what I'm looking for. What I have done is create a shader that when applied to a texture and then to any...

View Article


How do I set matte on an Unlit Shader?

How can I add a mat setting for this shader? Shader "Unlit/Customs/SpriteBlendColor" { Properties { [HideInInspector] [PerRendererData] _MainTex ("Texture", 2D) = "white" {} // _ColorMultiply...

View Article

Receiving Shadows On a Tranparent Shader

**In Unity 2020.1.3f1** I'm currently working on a small shader which takes the alpha component of a mesh's vertex colours and uses it for transparency, the result is a fade out along the edge of the...

View Article

How i get unity linear fog start and end values in shaderlab.

I'm making a vertical fog shader, and I'd like to use the values used in the linear fog settings, I got the color, but the start and end value I couldn't find. This is a simplified version of my...

View Article

Shader: How to write a shader that respects sorting order first and then depth

I am very new to shaders. I have created a custom editor for MeshRenderer in order for me to edit their sorting order. I want to modify Unity's built-in mobile unlit shader...

View Article


Is it possible to turn Depth Testing on/off for individual meshes sharing a...

I have a bunch of meshes, each with their own MeshRenderer, using a custom surface shader, and which are all sharing the same material. I would like to be able to turn Depth Testing on and off through...

View Article

shader that makes object look hollow

I am using the Standard render pipeline. I have found a shader I would like to use for a project. It simulates a liquid that can be filled up in the shape of the object its attached to. A liquid should...

View Article


Team color shader in 2d game causing mysterious rectangles in other graphics

It's a 2D game in Unity 2020.3.17 Sometimes rectangles appear in the game window in editor, they are not visible in scene view. They also frequently appear in builds. I deleted all game objects besides...

View Article

Unity - Problem with shader on editor and Windows build after updating unity...

I have upgraded a project from unity Unity 5.3.3f1 to Unity 2020.3.15f2, I kept the built-in render pipeline but I'm having some problems with a specific shader that doesn't seem to work in the editor...

View Article


Need help with billboard shader

So I have this billboard shader that I found online and it works good and all but it's missing some things that I need and I have never worked with shaders before and don't know how to add it on my...

View Article

I need to send a render texture from camera to a GPU

Hi! I recently started working on a game in which you need to stay in a lighted area. I decided to create a computational shader that will be responsible for calculating the illumination of each frame,...

View Article

How to convert image to smaller image array

So I need to create a program that converts an image/scene into smiley faces. The basic idea is this; I will have a scene with an image in it, and I want to create a shader or script that can turn that...

View Article
Browsing all 169 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>