We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [shaders]

A shader is a computer program that usually runs on a GPU and 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.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Import GLSL-Shader into blender

I have a shader written in GLSL, I would like to import into Blender. I have already gathered, that I have to import it into BGE. Is it also possible for Cycles or BI (preferred)? In any case, how do ...
3
votes
1answer
3k views

How to view Environment texture in Solid / Texture / Material view?

I saw this happening in some tutorial, but have forgotten for the moment, What I want is : To make the HDR environment texture appear in 3D viewport without going into Render Mode. I can use the ...
3
votes
1answer
163 views

Cycles Toon shader size effects diffuse direct value

Here are three monkeys lit by the same sun lamp. They have only a Toon Diffuse shader set to color of 0.2 value, and size of 0.8, 0.5, and 0.2 respectively. But it can clearly be seen that their lit ...
3
votes
1answer
98 views

Cycles one side transparency

Is there a way to create a material that seems diffuse shader, but can see lights trough it when lights are behind like E.V.E. in Wall-e? I have tried diffuse mixed with gloss and both mixed add to ...
3
votes
1answer
519 views

Achieve Damascus steel style with Cycles

so I'm modeling a katana, and I would like to give it a proper "Damascus" style to the blade, and I was wondering if it's possible to achieve this in a way that doesn't involve me opening GIMP/...
3
votes
3answers
223 views

How to restrict certain lights from shining through specific materials?

I'm trying to create an effect where a material/object will block out a specific lamp, but not any others
3
votes
2answers
218 views

How to add some blur inside a glass sphere and keep the outside sharp & reflective?

How to add some blur inside a glass sphere and keep the outside sharp & reflective? Blur may not be the right descriptive because there is also some distortion. I'd like to keep it one mesh ...
3
votes
1answer
1k views

How to control specular/glossyness of glass shader in cycles

I am trying to control the amount glossyness/specular (not roughness) of glass but not able to find any option in cycles. I have tried both the traditional glass shader and the new Principled BSDF ...
3
votes
1answer
524 views

OSL Script node: Slider with value range between 0 and 1 (like Fac)

I am currently writing my own shader using a Scriptnode in Blender, and I cannot figure out how to limit the range of a slider between 0 and 1. I basically want something like the "Fac" slider in a ...
3
votes
2answers
3k views

Normalized z-depth shader (based on the cycles camera data node)

I'm trying to create a shader that displays the normalized (0 to 1) camera Z-dpeth on top of the viewed object. Yeah, I know I can easily do this in post with the normalize node if I render out the z ...
3
votes
2answers
470 views

Setting material node properties across a large number of objects?

I'm using a Python script to generate a star-field using data from ~9k of the brightest stars (data is taken from here) Spheres are generated equidistant from the camera (eventually these will be ...
3
votes
1answer
1k views

Light path - Transparent depth issue

I made an earth object and gave it a material including the usage of the new input of the "Light path" node "Transparent depth" which makes the back faces invisible. However, when an object has ...
3
votes
1answer
384 views

Use color ramp to mix materials

I'm trying to set up a material that shades the topography of a spherical model of the Earth based on distance to the center of the Earth. Setting up a ColorRamp based on distance from the center of ...
3
votes
1answer
95 views

Overlay more than one transparent images in one shader

I'm trying to use the Shader Editor to put four transparent images onto one object. My approach to this was to add all of the alpha channels together and then to use that combined alpha to mask the ...
3
votes
1answer
5k views

Blender 2.8 - Object index pass in Eevee

I need to isolate filters on some objects in the compositor and Blender 2.8 does not have the options to setup object/material passes in the View Layers. Is there anyway to achieve this in Blender 2.8 ...
3
votes
1answer
159 views

Glass shader has black parts

i'm trying to render this glass material but i have these black parts all over the model. Any idea what could be the cause of this ?
3
votes
1answer
123 views

Shader: Random cubic color

I'm struggling with how can I create a random color between some range. To explain better I have this: But I want these each cube has one random color. My code: ...
3
votes
1answer
278 views

OSL script node : detect if two object collides and output a bool

I would like to have a script node that would output a boolean depending of if two objects are intersecting or not. The goals is to use it in a mix shader and to hide / show my object depending of ...
3
votes
1answer
844 views

How to combine the Bevel shader with displacement and bump textures

Edit: the displacement node has been changed in more recent builds, before it was used as a bump effect, now it displaces the geometry by default so you can't reproduce my issue in this post. I want ...
3
votes
1answer
734 views

Glass shader blocks light?

I know a commonly duplicated question is "Why is light not passing through glass?" or "Why does my glass shader ignore lighting?", But mine's a bit different. The Problem I 3D modeled a type of ...
3
votes
1answer
3k views

How to make a real mirror on blender with cycle engine [duplicate]

I need to add a mirror object in Blender. I'm looking for the existing objects, but can not find any object. I am wondering how I can add such an object.
3
votes
1answer
3k views

Procedural texture is stretching

I have this procedural texture which creates a little camouflage pattern, but it appears to be stretching on the hull of the plane. Here is the node setup, super simple. And here is the issue. You ...
3
votes
1answer
380 views

Making a shader that would “fill” an open mesh?

I made a material that mixes two shaders using an empty which acts like a kind of mask for those shaders. If I move my empty up, there will be more blue shader. If I move it down, there will be more ...
3
votes
1answer
196 views

What compute device does the material preview use to render?

Recently I have been working on a material library, and when I am working on a complex shader, the preview is updating several times a second. I find that after a while of intense editing and tweaking,...
3
votes
2answers
165 views

What is the difference between “Shader” and “Material”?

I know that Shader is a type of computer program that used for shading. And it looks like Material also define how model looks like. That means for me, that in Blender "Material" equal "Shader" (or ...
3
votes
1answer
124 views

Black reflections in cloudy glossy acrylic floor material

Okay so I'm building out my scene and before I know it there's these strange reflections in my floor. So the way my scene is setup is I have three walls, all of them are the same semi-transparent ...
3
votes
1answer
2k views

Material appearing as bright white or white on some objects while using Eevee Render in 2.8

I have a scene with 7 different materials and 405 objects. One of the materials is displayed as I want it to for some object, while other objects it is applied to behave either like a bright white ...
3
votes
1answer
61 views

checker in 4 colors

Could someone tell me how I can create a checker in 4 colors in all faces? I have already made this: ...
3
votes
1answer
1k views

Substance B2M to Blender Workflow

I have decided to work with Substance B2M en use the texture maps in Blender. I want to work with the PBR shaders of Cynicat Pro and connect the Substance maps into the input nodes of the PBR Shaders. ...
3
votes
2answers
452 views

Glossy Shader not what I need it to be

I am trying to make a die that looks glossy (as most dice do), but using the glossy shader in the way I did fades out the texture underneath. The pips turn into a grayish metallic color, and the whole ...
3
votes
1answer
177 views

Removing black-ish tint in beveled area of clear glass

I can not seem to gt rid of the really annoying BLACK that always seems to show up in Blender Cycles when rendering glass. I've even used a transparent shader to NO avail.
3
votes
1answer
555 views

What elements go into a good material testing scene

I've been searching a bit for the perfect material testing scene, so I'm curious, what are some of the most important elements in a material testing scene?
3
votes
1answer
4k views

Why is my mesh inversed when Imported to Unity?

So I modeled this sword and all the parts were separate meshes. I used a mirror modifier when I was modeling and then I applied the modifier when I was done to make the parts into solid meshes. Put a ...
3
votes
1answer
479 views

Override final pixel color in a Cycles/OSL shader? [duplicate]

In the Renderman Shading Language, the whole purpose of a shader is to determine the final pixel color for each fragment. You have complete control over what the shader does and what the final color ...
3
votes
1answer
136 views

Any way to simulate a material to look like the viewport?

I was wondering if there was anyway to get a material that looks like the matcap in eevee's viewport. That kind of gradient look that catches shadows really well
3
votes
1answer
501 views

How do you make an SSS texture (Using Principled BSDF) only affect part of a mesh? (Image/gif inside)

(Albedo texture on left and SSS texture on right just for reference) https://i.stack.imgur.com/veTGy.png I've been trying to figure out how to have an SSS shader apply only to certain parts of the ...
3
votes
2answers
2k views

Honey shader in Cycles

Trying to make honey material. I think there is some manipulation with nodes I need to do to get results but I have not enough experienced in that. Can you please help me simulate honey consistency ...
3
votes
1answer
585 views

How to use a custom tangent for anisotropic shading in BI/Blend4Web?

I'd like to create a material such as this in Blend4Web (and if it can be done in BI, chances seem good the same approach can be adapted for Blend4Web): I've rendered the above image in cycles via a ...
3
votes
2answers
483 views

Weird shading in my faces

I have used blender for some time and have never seen something like this, I tried: Changing normals; Flat/smooth shading; deleting the faces; making the faces planar, and I can't find the solution. ...
3
votes
3answers
350 views

Tiny geometrical irregulatities in model imported from Rhino

Im migrating an assembly with over 300 parts as .obj to blender to animate it. Some of the gaps of the rhino geometry get filled with extremly tiny polygons. The resulting surfaces are well connected ...
3
votes
1answer
152 views

How do I create a shader that is partially emissive for a particular colour, but diffuse if it's grey?

So, I'm trying to make some material that's like lava, with solid, diffuse, grey material, and an emissive shader that's red and orange, using a musgrave and colorramp node. This is a screenshot. How ...
3
votes
0answers
43 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
86 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
107 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
431 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
860 views

Cycles Procedural Texture Study [closed]

I've become very interested in procedural textures as of recently. I would like to start building my own library of these textures, so I can easily texture scenes without having to search for ...
3
votes
0answers
61 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
196 views

Is there a document describing the Cycles BRDF implementation in detail? [closed]

Where can I find a document describing the way Cycles BRDFs are implemented? I am looking for details on the Specular D, G, F and diffuse.
3
votes
0answers
505 views

How to set up SSS on cycles for efficient rendering

How do I set up SSS shaders properly to render efficiently in animation projects. Are there any specific optimizations to consider? I am trying to render some orange juice in a bottle and getting ...
3
votes
0answers
211 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.