Questions tagged [shaders]

a computer program that runs on graphics hardware and provides a high degree of control over how scenes are rendered

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Relocate texture regions with pixel shader

I'm new to DirectX and pixel shader development. I want to know how to relocate region of input image in post processing. What I want to achieve is to divide my image into 4 pieces and then relocate ...
0
votes
1answer
54 views

OpenGL Vertex Shader “joint matrix * weight” multiplication performance

Trying to implement animation on my engine. I'm at the first stage, rendering default pose of skinned meshes. Working as expected but very slow. With the below calculation, the shader takes 6ms to run....
0
votes
0answers
36 views

Spawning noise-based fire effect with code, no prefabs

i'm a beginner in Unity, and I'm taking a Graphics course about algorithms of procedural textures/modeling. I would like to write a noise-based fire shader like this one: I would like to then be able ...
0
votes
0answers
14 views

Given a point, create a triangle with it through shaders in Stride

Need help in writing shaders in Stride. I have a vertex list. I need to create triangle from each of the vertex. For each vertex, it will be considered as a center point and three new points are ...
0
votes
0answers
15 views

How Do I Get A Shader To Stop Glowing

I am trying to make a top down game. Sometimes the enemys are invisible to the camera if they go behind objects, and I want to be able to always see those enemies. I followed this tutorial to get to ...
0
votes
0answers
9 views

Particles look different in scene view and game view?

I'm rendering particles and I'm not happy how it looks in the game view. Why is there a yellow outline in the game view (right) instead of fading nicely into the background like the scene view (left)? ...
0
votes
0answers
17 views

How to split an object in half with vertex shader?

I have a mesh of a house with roof and interior. I'd like to use a vertex shader to cut the roof off and move it over so I can see inside. However, when I do this: ...
1
vote
0answers
30 views

How to have different world states on each client but treat them as though they were the same?

I've got a voxel-based, Minecraft-like, 3rd-person isometric multiplayer game with camera rotation. Roofs are always the same height. Players can walk on roofs, and shoot or be shot while standing on ...
0
votes
0answers
11 views

How to show a marker (aka secondary texture) on a sphere at a specific location using shader?

I have a 3D Earth and I would like to show some specific marker at a specific location based of latitude and longitude. I figured out how to calculated world coordinates from Lat|Long and pass it to ...
1
vote
0answers
35 views

How can I improve performance when making a paint trail effect in ShaderGraph?

I'm having trouble making a paint trail effect in ShaderGraph. What am I doing wrong? Are there other ways of doing this? Here is what I have so far: ShaderGraph of the original render texture: ...
0
votes
0answers
24 views

How to map 2d point on grid/plane mesh to 3d point on sphere with minimal distortion?

I have a grid of voxels that I want to "bend" into a sphere via a vertex shader with minimal distortion. I've tried 2 approaches so far, both of which don't quite give me the desired effect. ...
0
votes
0answers
41 views

How to make under-construction sprites have blueprint graphics?

In my game, every placeable object and structure will only be placed as a blueprint, which the characters will then automatically build. An example from "RimWorld": Objects placed as ...
0
votes
0answers
19 views

Blending / Lerping between textures in a Unity CG Shader

I can lerp between colors just fine, but lerping between textures just doesn't seem to work. What am I doing wrong? Here's my code: ...
2
votes
1answer
43 views

Making a billboard shader in Unity

I followed this guy's tutorial on making a billboard shader, and it works great, except if you are billboarding things that are tall, like a tree, it looks weird, to put it simply. When the camera's ...
2
votes
0answers
22 views

Unity shader graph slow

Unity 2020.3.12f1 HDRP Whenever I add a single node in Shader Graph, the progress bar "compiling shader" takes around 20 seconds to complete. Multiply that by dozens of nodes and we're ...

15 30 50 per page
1
2 3 4 5
120