Quantcast
Channel: GLSL / Shaders - Processing 2.x and 3.x Forum
Browsing index pages (212 articles)
↧

real time data program

hey guys. in this time i need some help to optimize a system to pick shaders in real time (fragment shaders, and vertex shaders). This code is a mix that i recoleted in internet with code writing by...

View Article


How to combine a point shader with a blur shader?

I would like to display thousands of points on a 3D canvas with a Depth of Field effect. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a point based...

View Article


Send individual msj to a shader

hey everybody. this time ive a problem sending invididual mensajes to a fragment shader. Ive an array of spheres, and i want that every sphere have a different size of blur, witch is a uniform of the...

View Article

CodingTrain Fire&Water

TheCodingTrain channel did two videos recently on water and fire effects. He did them in just processing, I'm doing it in processing with shaders. For the water, I didn't have any issues converting it...

View Article

Use samplerCube and sampler2D in a single glsl Shader

How can I use a samplerCube and sampler2D in a single glsl Shader ? I get the following error when I try to use both at the same time : Cannot validate shader program:Validation Failed: Sampler error:...

View Article


Image may be NSFW.
Clik here to view.

how to combine shadows + reflections in frag shader?

To put it as simply as possible, I'm modifying and recompiling PixelFlow's render.frag and render.vert files to allow me to add cubemap-based reflections to PixelFlow's skylight renderering system....

View Article

NVidia/AMD differences?

I made a tower defense game for a game jam in processing3 https://indielm.itch.io/sap42 The path finding for enemies is all done in a shader on the gpu. I don't have access to an AMD machine, but I'm...

View Article

Image may be NSFW.
Clik here to view.

How to implement a z-buffer within a blur fragment shader

Hi all, I'm trying to fake a Depth of Field effect in a 3D scene. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a an object based on its distance...

View Article


Shadertoy shader not rendering until screen window is resized if...

I'm trying to figure out DwShadertoy's implementation of Shadertoy shaders, however there are two big issues I've ran into. The first is that the window won't render until it is resized when...

View Article


How to port shaders from shaderfog, shadertoy to Processing?

As a very confused opengl beginner complete beginner who is struggling to get started I have a few questions. Is it possible to use GLSL directly in processing or do you need to port to PShader? Is...

View Article

Reaction-Diffusion using GLSL works different from normal

I managed to get Reaction Diffusion Algorithm to run on the GPU, but now I'm having problems. The code runs and all, but the effect is much different from the effect I get with Reaction Diffusion...

View Article

Image may be NSFW.
Clik here to view.

Implementing a gooey effect with a shader

I'm trying to replicate a web design trick know as "gooey effect" (see it live here). It's a technique applying SVG filters on moving ellipses in order to get a blob-like motion. The process is rather...

View Article

Are Processing's shaders fast enough?

It's said that OpenFrameworks runs much faster than Processing, so many artists choose OF in live performances other than Processing. But I just wonder how fast it is to use Processing's shaders...

View Article


Image may be NSFW.
Clik here to view.

Draw points from texture stored locations?

I want to pass a shader a texture of encoded locations, and have it draw points at the decoded locations. I have a particle system stored in a texture that's 3000x1, with the x and y locations encoded...

View Article

How to port this shader to Processing 3?

Shader in question: https://shaderfrog.com/app/view/1078?view=shader I'm a complete GLSL noob and was wondering how to go about applying this shader to an imported .obj in Processing. My sketch is...

View Article


Get pixel values and displace the vertex?

I want to write GLSL shaders that use the pixel values of the image as magnitude in order to displace the vertices of an object in the direction of the surface normal. Incorporate a point light and...

View Article

Render depth buffer onto 2d PGraphics

I would like to use the depth buffer of a PGraphics3D in a texture shader on a PGraphics2D. Now I could not really find a way to share the depth buffer of the 3d scene with the 2d texture, so I decided...

View Article


Setting projection and modelview matrices manually

Hi. I'd like to copy the projection and modelView matrices from one PGraphics into another one so I can render different passes of the same scene no matter what camera library is in use. I have tried...

View Article

How do use a sampler2d array in Processing?

I would like to keep a frame buffer in the shader (say, the last 1 second of video). To do that I tried with uniform sampler2D tex[30]; and from Processing sometimes I try writing into that array with...

View Article

Trouble setting uniforms for PShaders used by secondary renderers

I'm trying to do some low-level OpenGL rendering onto a separate PGraphics buffer for a library I'm rewriting, and I've run into an issue where I can get my geometry to render on the separate PGraphics...

View Article
Browsing index pages (212 articles)


Latest Images