Quantcast
Channel: Questions in topic: "shader"
Browsing index pages (7500 articles)

Particles/Standard Surface did not work on Oculus quest 2

Hi, I tried to build and deploy the Android application on Oculus Quest 2 (Unity). I used Shader to draw the surface of an object, meshRenderer.material = new Material(Shader.Find("Particles/Standard...

View Article


How exactly can I get the position of every pixel so I can then modify its...

I've written a script that changes the color of an entire object based on the player's closing velocity to it. But, what I need to do now is change the colors of the individual pixels of each object...

View Article


3D pixel art shader only sharp when square resolution

This is difficult to explain, but I have this image that is 15x16, but when I import in to unity it appears warped and blurry. Original image: ![What it should look like][1] How it appears in game:...

View Article

Light projector showing unexpected lines across scene

Hi! I'm trying to show selection circles around objects. For that i found light projectors with a shader and images for the patterns as a solution. Now i've got that working, but i get straight...

View Article

Do shaders always run?

I have setuped a grass shader with only 2d texture in it. i have spread grass across the terrain. but this slowed down the pc. even when the grass is culled the shader is running. even when grass is...

View Article


Changing color of crosshair based on color underneath using shaders

I'm new to shaders in general. What I want is to create a crosshair where the colors of it change depending on the color of what is being moused over. I've seen examples for shaders that have a...

View Article

How to add an atmospheric effect to a planet drawn on the sky

Hello people, I started to understand in detail some Unity components and ran into such a problem. I am sure it is easily solved, but I have never done this before. I have the "planet" in the...

View Article

Hair shader graph with root and tip color controlled by texture maps

I want to control the colors in a hair shader graph with a texture and with different maps for the tip of the hair and the root of the hair. I can't seem to get the uv's of the strands. I can do it...

View Article


White tiles displayed in play mode on Android platform

Hello everyone, I'm using a Tower Defense Template from Unity Technologies and I'm facing an issue. Running this game template on Windows platform it's working like a charm, but when I'm switching to...

View Article


Shader Graph Questions ( White Texture - Shader Graph + vfx)

Hello everyone, i am a beginner in unity and i would like to ask some questions i have in same post. I am using Unity 2021.3.25f1 1. When i import a Texture 2d i have into the Lit Shader Graph it looks...

View Article

I want to invert every objects color in my entire game from the press of a...

I know nothing about shaders, thats not an exaggeration I do not know what any form of code for shaders does. I figured that making some system that would Invert the colors on a button press would be...

View Article

Why does my shader not work in URP WebGL?

I recently bought an asset from the asset store which gives me a cool shader effect the camera. This all works on URP and Built In pipeline in the editor and in a Windows build. The issue is when I...

View Article

Adding border to line renderer.

I am trying to add border to my line renderer .I made a shader which has black borders , and white in the middle. But , in the edge of the line I am unable to get the border as i desired , i added end...

View Article


Point cloud selection via pixel color

I currently have a custom point cloud shader for Unity. The point clouds are represented as a collection of meshes, each point being a vertex in a mesh. The shader displays a billboard/quad with...

View Article

how to calculate attenuation for custom lighting function

I made a custom lighting function on a surface shader, there is a specific effect I want to achieve and for that I think I need to play with the attenuation value, but when I try to calculate it on the...

View Article


Increase the scale of an object but the shader stays the same size?

I've been following a tutorial on making a low poly looking ocean shader, and it looks perfect for what I need. However, a small issue is that I cannot increase the scale of the ocean tile without...

View Article

Unity oficial toon shader instalation dont work

im trying to use the oficial unity toon shader with the correct supported version of the editor https://docs.unity3d.com/Packages/com.unity.toonshader@0.8/manual/index.html but it will give the...

View Article


Bad video frame when display video on plane object in realtime

Hi. I made c# script to receive video frame via ethernet and display it on plane object. This is my program structure. **There is problem that frames are cracked about 3 times of 20. ** What is the...

View Article

Some materials disappearing when camera is too close to model

First I would like to clarify, this is NOT a camera clipping issue.   I'm working in Unity version 2019.3.5f1 and the materials that I'm having this issue with are ones using the "Particles/Standard...

View Article

Display video on a Plane object in real-time,Displaying video on a plane...

Hi. I made c# script to receive video frame via ethernet and display it on plane object. This is my program structure. **There is problem that frames are cracked about 3 times of 20. ** What is the...

View Article
Browsing index pages (7500 articles)


Latest Images