Questions tagged [shaders]

A shader is a computer program that is used to do shading, texturing, special effects or post-processing. Shader nodes specifically refer to the nodes used to create shaders for Cycles, but this tag can be used for other shaders as well.

649 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
1k views

Does a model exporter embedding materials as GLSL scripts exist?

as described in Blender Shader in OpenGL/GLSL, it is possible to export the (unoptimized) GLSL code generated by Blender for a given material. Since the viewport can use such GLSL for real-time ...
6
votes
0answers
55 views

how to write a custom projection type?

Is it possible to create a lens shader with EEVEE/Cycles ? I'd like to have the control over the camera position and the ray direction per sample. This allows to simulate various conventional lens ...
4
votes
0answers
177 views

Blender won't start - GPUShader: compile error - AWS Elastic Graphics

I am looking to run a Blender workload in Amazon Web Services (AWS). I am testing on a Windows Server image on a non-GPU compute resource. Instead of GPU I am attaching AWS Elastic Graphics to the ...
4
votes
0answers
57 views

Shading according to velocity

I have a rigid body simulation of many objects and would like to change how they're shaded depending on velocity. It's easy to get location from object info node, but how about change in location ...
4
votes
1answer
544 views

Separate alpha from color in Shader Editor

In the Shader Editor, I can create an RGB node and in there, I can set an alpha value as displayed in this screenshot: However, no color separation node in blender supports extracting that value and ...
4
votes
0answers
2k views

nVidia skin shader with the Principled BSDF

I've been using a skin shader primarily based on the Brecht skin shader, which is itself based on the Sum-of-Gaussians approach as seen in 14.4.7 from GPU Gems by nVidia. Its Cycles adaptation, which ...
4
votes
0answers
89 views

GameEngine: KX_BlenderMaterial vs KX_PolygonMaterial

I have a question about the material types in the game-engine. e.g.: 2.66 Blender API - KX_PolyProxy(SCA_IObject) 2.66 Blender API - name ~ The material of the polygon. When is the material a ...
3
votes
0answers
44 views

What happened to the color pallete?

Why don't I get the normal color pallette in my material? what happened? I've never seen this before. My color palette is seemingly faulty. I am sure it is not, rather I am surely at fault, but I ...
3
votes
0answers
23 views

Displacement on Particle Location

I am trying to create a shader which uses displacement to create a dent in an object with a hair particle system, based on the locations of the hair particles. The strawberry I have created is setup ...
3
votes
0answers
51 views

How to stack displacement nodes?

When using displacement modifiers, you can use the resulting mesh normals of the first displacement as the base for the second, such that the end result is a 3 dimensional displacement. For example, ...
3
votes
0answers
35 views

Cycles - How to transfer information from a shader to another non-destructively ? (no baking)

How can we non-destructively (witouth baking anything into vertex color nor bitmap) transfer information from one shader to another within cycles ? Here's an example : Here is a simple proximity ...
3
votes
0answers
26 views

How do you texture a remeshed particle system?

I try to make some interactive soil! And I already set something up that kind of works, but I have some problems in texturing it! What I did by now is... I made a particle simulation via the molecular ...
3
votes
0answers
61 views

Is it possible to apply ocean modifier for only one face of geometry?

blender newbie here. I was trying to recreate this illustration with my limited knowledge. And while doing that I tried to follow some tutorials. In one of the tutorials, the animation done with ...
3
votes
0answers
844 views

How does a shader detect if two objects overlap

I saw this shader (https://www.youtube.com/watch?v=L2Du5F7PfQM - an animated procedural water toon shader) . It says (in it's blender market page - https://www.blendermarket.com/products/pure-toon-...
3
votes
0answers
110 views

Jagged edges using a toon shader and Evee

I am trying to create a cartoon style render using evee with light reflections on the material (wich is suposed to be metal). I tried everything like subdividing, auto smooth, changing shadow ...
3
votes
0answers
46 views

Possible to give a shadow a different material?

Hello. Let say that in a this image, i'd like all shadows to be rendered as an red emissive material, is this possible in render ? procedurally, witouth any modifiers, just by the shader editor ?
3
votes
0answers
49 views

texture mapping without texture being mirrored on other side of object

I have a cylinder I want to map a texture to. To specify the location of the texture I use an empty. In the material node editor I then use the object function of the texture coordinate node and ...
3
votes
0answers
65 views

How to externally control the look of volume material?

The effect that I want to achive looks like this: The problem I have is with that colorful cube with controllable color gradient. The cones and planes can be ingnored. I have achived similar result ...
3
votes
0answers
262 views

Procedural Materials On Fluid Simulations

Been struggling with this for a while. I've made a procedural lava shader and I want to put it on a fluid sim. The problem is, all the mapping methods I've tried make the fluid travel through noise ...
3
votes
0answers
4k views

How to see the shader preview?

In shader editor , how can i see the preview of the shader or any nodes without it's being applied to objects ? something like 'viewer' node in compositing editor. Right now if i have lot of 'image ...
3
votes
0answers
141 views

First attempts with SSS - where is the nose?

I am trying to make the skin for my female mesh and watched some tutorials on Skin Shaders. I tried to rebuild YanSculpts Tutorial https://www.youtube.com/watch?v=ktsyL2Kp5bQ&t=388s and the result ...
3
votes
0answers
573 views

I want to convert my Diffuse Shaders to Principled Shaders

I just barely imported a scene from an .obj file, but all 83 materials defaulted to Diffuse Shaders of various colors. To make for a faster workflow, could I use a python script of some sort to ...
3
votes
0answers
62 views

What is the significance of the value of the limit on the roughness attribute of the Oren Nayar shader?

In exploring the settings of the Oren Nayar shader in the Blender internal rendering engine, I find that there is an upper limit of 3.14 for roughness. Is this the constant Pi? Why is this the ...
3
votes
0answers
222 views

Material Mode in Shading Panel

I have this version of Blender What is the difference between the two Material modes in the Shading panel ? On my PC GLSL seems to work, instead Multitexture seems doesn't work.
3
votes
0answers
520 views

OSL: Giving the texture method a color instead of string

Is there a way to give the OSL method texture(string, float, float, ...) a color input instead of the string which reads an image file? Or is there any type of ...
3
votes
2answers
1k views

Is there a way to manually control vertex/face normals to get a more consistent toon shader?

I watched this video about the art style of popular fighting game Guilty Gear Xrd, and something which really interested me was the method that the artists used to get rid of ugly automatic-normal ...
2
votes
0answers
26 views

Understanding Blender's Invert Node and Varying Bit Depth Images

So, I am trying to wrap my head around exactly what the invert node is doing in the shader editor. I realize that this sounds like the most simplistic question in the universe, but please bear with me....
2
votes
1answer
32 views

Alpha modifier, or properties, that affect the child of the group “as a single object”

I try to transfer my UI design workflow into Blender and I have one major blocker. In UI design we overuse the ability to group object and modify/animate the properties of this group like scale/...
2
votes
0answers
22 views

Three shaders (or more) sharing same basecolor?

Can I change BaseColor from one shader and update automatically in other SELECTED ONLY object's shaders at the same time to share the same basecolor? The idea is to use the same color on selected ...
2
votes
1answer
37 views

Automatic AOV shader pass setup for geometry buffer

Is there a way to create AOVs that affects all materials in the scene? I can successfully create an AOV shader pass that outputs world positions of the object material is on: This gives me correct ...
2
votes
0answers
53 views

Pink, no texture, indicator when noise/voronoi or other textures are input into bump map height

I've been following a number of youtube tutorials (old and new) on the topic of making cement, stone, and plaster. Like this tutorial https://www.youtube.com/watch?v=FCJa97F9ReM&t=239s. However ...
2
votes
1answer
51 views

Shader changes behavior near mesh edge

Is there a way to have a shader behave differently near a mesh edge? For example, if a shader generates a checkered pattern, is it possible to detect the edge and make the squares that intersect the ...
2
votes
0answers
33 views

Normal Map … Format Structure?

This link .. https://docs.blender.org/manual/ru/2.79/render/blender_render/textures/properties/influence/bump_normal.html#:~:text=Normal%20maps%20in%20Blender%20store%20a%20normal%20as,%280%20-%20255%...
2
votes
0answers
40 views

Unable to add “nodes” in shader editor

I'm not able to add any nodes in shader editor. When I'm pressing Shift+A only "search" appears. I'm aware of turning on the "use nodes" but it's also not there in my material ...
2
votes
0answers
36 views

Unable to import JPEG's for material texture

I'm trying to import a JPEG for texturing. If the image I download is a PNG, then it is available in the shading tab and I can drag and drop it into the materials window and apply it as a texture (...
2
votes
0answers
41 views

Custom shader script in compositor (de-linearize depth buffer)

Some months ago I wrote a minimal opengl 2.5d game engine with pre-rendered backgrounds (such old Resident evil, Alone in the dark and Final fantasy games). Depth is managed through a grayscale image ...
2
votes
0answers
184 views

What's the shading algorithm behind Smooth Shading?

When I flip between flat and smooth shading, I see that the vertex normals flip between n vertices for n meeting faces and single (averaged) normal. Once the vertex normals are deduced, how're ...
2
votes
0answers
92 views

iridescent snake skin shader

I'm working on this snake and want it's skin to look like these reference images. This is what I got so far but I don't think this is the optimal way. Any suggestions? With iridescent shader from ...
2
votes
1answer
97 views

get this gradient style in blender

I'm trying to get this gradient style: My best result are with eevee with volumetric and gradient on a metaball, but i cannot figure out how to get the gradient fill the totally of the metaballs like ...
2
votes
1answer
30 views

How to create a feathered border around an object?

This is the best way I could possibly phrase this question. What I want to do is mix two different materials. I want to use the secondary material to catch the rimlight of the object, but I only ...
2
votes
0answers
385 views

Transparency showing as black on a mix shader (multiple image textures)

First time here, still pretty new to Blender. I have an object that I've applied an image texture to. The object is a can with a label that wraps around 90% of it. The object's "label" texture ...
2
votes
0answers
20 views

Save just the Material part of a .blend file

Can you just save parts of a .blend file? And link them in later? thanks
2
votes
0answers
73 views

OSL: HalfVector Question

EDIT: I pasted a copy of the code for convenience. I have a question about the halfway vector between the camera and light vectors giving odd results in my shader. I included screenshots of my OSL ...
2
votes
0answers
94 views

How can I simplify this triplanar material so that I only need to feed my texture into one slot instead of three?

I found a setup for a tri-planar shader online and it gives good results for me so I quite like it. But every time I want to swap the texture I have to swap it for each of the texture nodes. That ...
2
votes
0answers
119 views

How to convert a world generated Texture Coordinate into Object Texture Coordinate

In the material shader editor, one can use a Texture Coordinate from the Input, like generated, UV, object, etc. For example the object texture coordinate,the main benefit is that it will allow you ...
2
votes
0answers
128 views

My render doesn't look like my shading tab

I want to render this scene (white walls, white reflective floor, wooden table, HDRI background) but it doesn't want to render like I made it. Can anyone help please?
2
votes
0answers
43 views

Image Texturing - Using cycle's nodes to scale image texture and randomly rotate them

Is there a way to randomly rotate an image texture randomly and keep its mapping scalable? Im sure this has already been asked but can't seem to find it. If someone can redirect me to the appropriate ...
2
votes
0answers
106 views

Why Transparent BSDF blocks reflections of Principled BSDF? (Cycles)

I wanted to share an issue related to Cycles shaders I don't really know how to face. I am rendering a honey pot. Nothing crazy about this. But when I tried to add the sticker I noticed some ...
2
votes
0answers
27 views

In Glass shader, transparency in not displayed

I want that when I apply glass shader then transparency must display but it is not , when I applied glass shader then reflection of trees are dipplayed instead of transparency , why? please help me, I ...
2
votes
2answers
4k views

Can't see through BSDF principled/glass 2.8

High risk this question was asked a billion times and I am just too stupid to find the correct answer, so apologiez. I am trying to create a drinking glass, the inside faces are colored red to ...

1
2 3 4 5
13