Skip to main content

All Questions

Tagged with
1 vote
0 answers
170 views

How can I make objects created with the GPU Module visible in the final render?

I used the code example for creating a triangle with custom shader from the official docs: ...
Squis's user avatar
  • 111
0 votes
0 answers
564 views

Can shaders created in Blender Shader Editor be exported as OpenGL shaders in versions of Blender 2.9x?

I have created a shader in the Blender Shader Editor, since I find it very powerful and easy to use. I would like to export this shader so I can use it outside Blender. Is this possible for versions ...
CPRBlender's user avatar
4 votes
0 answers
1k views

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

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 ...
Luther's user avatar
  • 141
5 votes
0 answers
320 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 ...
NickRay1184's user avatar
1 vote
2 answers
1k views

Preview in viewport using OpenGL shader

I am trying to apply a custom shader (OpenGL, but if that's not possible I can learn OSL) to a STL. I will not use any lights, cameras, I'm not going to render it eventually. I would like to have the ...
alex's user avatar
  • 79
4 votes
1 answer
356 views

2D 'POST_VIEW' drawing with gpu.types.GPUShader(vertex_shader, fragment_shader)

I can use gpu.shader.from_builtin("2D_UNIFORM_COLOR") to draw a square to a view (the nodeview), and give it a single color, but I want to use a custom shader. Does ...
zeffii's user avatar
  • 39.7k
2 votes
1 answer
704 views

What is the substitute for gpu.export_shader in Blender 2.80?

I am trying to export GLSL from Blender materials in a scene. This call appears to have been removed from module "gpu" in Blender's Python API as of 2.80. Is there any substitute? How should I proceed?...
Daniel Almeida's user avatar
3 votes
1 answer
4k 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 ...
schustudrai's user avatar
1 vote
2 answers
4k views

How can I show the GLSL code generate by node?

Sorry for my english. how can i show the code generate by the node and can i write my own node Element? Can i add a uniform float var? in order to comunicate with the fragment shaders?
ruhtra's user avatar
  • 31
2 votes
1 answer
1k views

Is it possible to set the vertex shader without overriding the fragment shader?

I'd like to make vertices of an object randomly move around a little. To do this, I created a vertex shader. I assigned the vertex shader to the object's material with ...
gandalf3's user avatar
  • 158k
0 votes
0 answers
143 views

Recreating Edge Split Algorithm

Does anyone have any insight to how Blender's edge-split algorithm works? I need hard lighting for an OpenGL project I'm working on that uses per-vertex normals to calculate shading, and I'd rather ...
haji beats's user avatar
0 votes
2 answers
306 views

shader.setSample invalid uniform value

I'm having troubles with my "clouds" texture while trying to sample it into my shader, the error is "invalid uniform value: clouds" ...
Yvain's user avatar
  • 722
2 votes
1 answer
793 views

Materials modified with GLSL in bge, return to original material (using only python)

I'm a noob and probably this is a completely silly question... Started using BGE two days ago... I'm using GLSL to visualize a distance field while running in standalone player. I'm doing it using ...
Matteo Ragni's user avatar
10 votes
1 answer
2k 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 ...
oparisy's user avatar
  • 357
4 votes
1 answer
7k views

How to access the window width/height inside a GLSL Shader?

Inside a Python script defining a GLSL shader used on the game engine, how do I access the width/height of the game window?
Dokkat's user avatar
  • 275

15 30 50 per page