przemyslawzaworski/Unity3D-CG-programming
À propos
Divers shaders.
Jeux et émulationProgression mesurée des étoiles
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- +5
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalShader and feature catalog
An index of the shader examples in Unity3D-CG-programming, based on the supplied local snapshot reviewed on 26 October 2026.
Coverage: 343 standalone shader source files (306 .shader, 36 .compute, 1 .raytrace), plus shader programs embedded in 2 C++ files, organized into 319 examples/features. Associated C# scripts and selected required data files are listed with their feature.
How to use this catalog
- Each row describes one independent example or one complete feature. Matching filenames are grouped; differently named files are also grouped when their code forms one pipeline. Collection folders retain separate rows for independent examples.
- Links open the corresponding files on GitHub. Paths retain the exact spelling and capitalization of the local snapshot; the links target the
masterbranch and may change as the repository evolves. - Most root examples target Unity's Built-in Render Pipeline.
URPandNeuralShaders/NeuralSDF.shadertarget URP;GLSLexamples use OpenGL/OpenGL ES;DXRuses DirectX 12 ray tracing. Other requirements and known limitations are mentioned where visible in the source. - Descriptions come from static source inspection. This catalog does not certify compilation or behavior in a particular Unity version.
License convention
The License column follows the repository owner's requested classification: MIT for examples without a ShaderToy reference in their code; Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. for examples containing a shadertoy.com reference. The scan includes the shader code and its associated C#/C++ source. For a combined feature, a ShaderToy reference in any source file gives the whole row the CC classification; source links are included in that cell for traceability.
The existing README declares CC BY-NC-SA 3.0 for the entire repository. The owner explained that this was a blanket declaration for the previously unorganized collection; this catalog records the requested finer-grained classification. A ShaderToy link is used here as a classification rule, not as independent verification of the linked author's license. Preserve original author credits and notices in the source, including third-party code referenced outside ShaderToy.
Contents
- Root examples (244)
- DXR/PathTracing (1)
- FLD (1)
- GLSL (7)
- GeometryShaders (4)
- HDR (1)
- MarchingCubes (1)
- MeshShaderRTX (1)
- Multipass (7)
- NeuralShaders (1)
- Physics/SpherePhysics (1)
- ReShade (4)
- ShaderReplacement (1)
- URP (10)
- Unity2021 (8)
- VolumeParticlesSystem (1)
- VolumeRenderTexture (1)
- VolumeTexture (1)
- demoscene/shader_model_3 (1)
- procedural textures (9)
- surface_shaders (12)
- surface_shaders/terrain (1)
- volumetric texture (1)
Root examples
| Files | Short description | License |
|---|---|---|
| 2D_fractal_generator.shader | Generates a configurable 2D fractal by repeatedly transforming UV coordinates; exposes iteration and shape parameters. | MIT |
| 2D_fractal_generator_distortion.shader | Adds nonlinear coordinate distortion to the configurable 2D fractal generator. | MIT |
| 2d_signed_distance.shader | Draws a regular polygon from a 2D signed distance function, with adjustable edge count, size and smoothing. | MIT |
| 3d_fractal_generator.shader | Raymarches a configurable 3D fractal distance field; controls fractal iterations, ray steps and shape parameters. | MIT |
| abstract.shader | Raymarches an animated constructive solid geometry scene using smoothly joined and subtracted boxes, with ambient occlusion. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| abyss.shader abyss.cs |
Vertical grayscale gradient paired with a scripted descending camera and rows of black cubes, creating a simple falling-into-an-abyss scene. | MIT |
| accumulation.shader accumulation.cs |
Demonstrates frame feedback: feeds the previous render back into the shader and gradually increases red on half the image. | MIT |
| AmbientOcclusion.shader AmbientOcclusion.cs |
Screen-space ambient occlusion from camera depth and normals, followed by blur and composition; includes an occlusion debug view. | MIT |
| apollonianII.shader | Raymarched Apollonian fractal with ambient occlusion, procedural surface detail and triplanar texture sampling. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| area.compute area.shader area.cs |
Generates a thresholded procedural heightmap and counts white pixels on the GPU to report their percentage of the texture area. | MIT |
| atmospheric_scattering.shader | Procedural skybox integrating Rayleigh and Mie atmospheric scattering, with adjustable sun altitude, intensity and exposure. | MIT |
| BakeTexture.shader BakeTexture.cs |
Bakes mesh vertex colors into UV texture space using a geometry shader and conservative rasterization to expand triangle coverage. | MIT |
| BakeVertexColorMap.shader BakeVertexColorMap.cs |
Bakes interpolated mesh vertex colors to a render texture by drawing mesh triangles in UV space. | MIT |
| bezier.shader | Draws a quadratic Bezier curve from three adjustable control points using a distance-based stroke. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| BezierSurface.shader BezierSurface.cs |
Generates a bicubic Bezier patch procedurally in the vertex shader, with animated control points, normals and checkerboard shading. | MIT |
| billboard.shader | Orients a textured quad toward the camera, with an optional UV flip. | MIT |
| binormals.shader | Visualizes mesh bitangents as RGB colors for debugging the tangent basis. | MIT |
| BitonicSorter.compute BitonicSorter.cs |
GPU bitonic sort: sorts indices according to values in a structured buffer; includes a C# performance example. | MIT |
| bitwise_test.shader | Minimal visual example of integer left shifts, using the result as a color-mask threshold. | MIT |
| bleach.shader | Applies a bleach-style image filter by combining luminance and color blending. | MIT |
| blur.shader | Blurs an input texture with a multi-sample circular kernel and adjustable radius. | MIT |
| bounce_ball.shader | Draws an animated bouncing ball procedurally in UV space. | MIT |
| brightness_contrast_saturation.shader | Adjusts image brightness, contrast and saturation using color transformation matrices. | MIT |
| buffer.shader buffer.cs |
Demonstrates persistent render-texture feedback with a moving colored dot and fading, blurred trails. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| CAS.shader CAS.cs |
Contrast Adaptive Sharpening post-process based on AMD FidelityFX CAS, with adjustable amount and sampling radius. | MIT |
| CatmullRomShader.shader CatmullRomSurface.cs |
Procedurally evaluates an animated Catmull-Rom surface, computes normals and renders a lit checkerboard; driven by CatmullRomSurface.cs. | MIT |
| chess.shader | Raymarches a plane with a procedural checkerboard pattern and simple diffuse lighting. | MIT |
| chess_with_sky.shader | Extends the raymarched checkerboard plane with a procedural sky background. | MIT |
| chess_with_sky_and_ssaa.shader | Adds supersampling anti-aliasing to the raymarched checkerboard-and-sky scene. | MIT |
| chromatic_aberration.shader | Offsets RGB texture samples to create chromatic aberration. | MIT |
| city.shader | Raymarches a repeating procedural city with randomized building heights and separate ground coloring. | MIT |
| clockwise_triangles.shader | Cycles through four triangular UV masks in clockwise order using step-based selection. | MIT |
| clouds2D.shader | Animated 2D procedural clouds built from layered fractal noise and color blending. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| collision_mesh_plane.compute collision_mesh_plane.shader collision_mesh_plane.cs |
Counts mesh vertices on one side of a plane with a compute shader and visualizes the plane test in a material. | MIT |
| colorblind.shader | Simulates several color-vision deficiencies with selectable RGB transformation matrices. | MIT |
| colours.shader | Animated abstract RGB patterns produced by separate, domain-warped fractal noise functions for each color channel. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| concrete_texture.shader | Procedural concrete-like texture built from layered noise, with scale, rotation and offset controls. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| ConstantBuffer.compute ConstantBuffer.cs |
Demonstrates sending a constant buffer from C# to a compute shader and reading results through a structured buffer. | MIT |
| cubemorph.shader | Animates a mesh between its original shape and a cube, reconstructing normals for diffuse lighting. | MIT |
| debug_vertex_index.shader debug_vertex_index.cs |
Visualizes SV_VertexID as a grayscale value; includes a script for supplying the example mesh and material. | MIT |
| debugger.shader | Prints numeric shader values directly on rendered geometry using a geometry shader and bitmap-style digit rendering. | MIT |
| DecalPainter.shader DecalPainter.cs |
Projects a decal onto a target mesh and renders the projected result into its UV texture space. | MIT |
| deferred_metallic_gloss.shader | Manual deferred material example writing albedo, specular/smoothness, normals and emission into Unity's G-buffer. | MIT |
| depth.shader depth.cs |
Visualizes the camera depth texture as linearized grayscale depth; the script enables depth rendering. | MIT |
| DepthBufferToWorldSpace.shader DepthBufferToWorldSpace.cs |
Reconstructs world-space positions from camera depth using the inverse view-projection transform. | MIT |
| diagonal_transition.shader diagonal_transition.cs |
Animated striped diagonal transition between two textures, with a script supplying the rendered scene. | MIT |
| DimensionConverter.compute DimensionConverter.cs |
Compute examples converting between flattened indices and 2D/3D coordinates in six directions. | MIT |
| directional_derivative.shader | Lights a raymarched sphere using a directional derivative of its distance field instead of explicitly calculating a surface normal. | MIT |
| disney.shader | Experimental Disney principled BRDF implementation with metallic, roughness, anisotropy, sheen, subsurface and clearcoat controls. | MIT |
| distance.shader | Colors geometry according to its world-space distance from the camera, normalized by an adjustable range. | MIT |
| distortion.shader | Applies an animated cosine displacement to texture UVs to create a wave distortion. | MIT |
| DrawCircles.shader DrawCircles.cs |
Draws many colored circles in one procedural draw call using center positions supplied by C#. | MIT |
| DrawCubes.shader DrawCubes.cs |
Generates cube geometry from vertex and instance IDs, with procedural placement and transparent gradient coloring. | MIT |
| DrawSphere.shader DrawSphere.cs |
Generates a complete sphere procedurally in the vertex shader and shades its faces with directional lighting. | MIT |
| drunk.shader drunk.cs |
Camera post-process combining several animated, offset image samples for a swaying double-vision effect. | MIT |
| edge_detection.shader | Detects image edges using screen-space derivatives and a sigmoid contrast function. | MIT |
| effect_transition.shader | Alternating horizontal-strip wipe between two raymarched constructive solid geometry scenes in one shader pass. | MIT |
| effect_transition_extended.shader | Two-pass version of the strip transition: renders one raymarched scene into a temporary buffer and combines it with the second. | MIT |
| elevated.shader | Raymarched procedural mountainous terrain with height-dependent shading, shadows, fog and sky. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| face.shader | Colors front-facing polygons red and back-facing polygons blue using SV_IsFrontFace. | MIT |
| fbm_generator.shader | Configurable fractal Brownian motion texture generator with noise scale, octave and color controls. | MIT |
| fbm_generator_version01.shader | Extended fractal noise generator with selectable noise formulas, nested domain warping and multiple color ramps. | MIT |
| fbm_generator_version02.shader | Gradient Perlin fBM generator with octave, frequency, lacunarity, gain and threshold controls. | MIT |
| fibonacci.compute fibonacci.cs |
Computes Fibonacci numbers in parallel and reads the integer results back into C#. | MIT |
| filmic_tonemapping.shader | Maps an input image through a filmic tone curve for display. | MIT |
| fire.shader fire.cs |
Experimental volumetric flame post-process integrated with camera depth; source comments flag camera-movement issues. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| fireworks.shader | Procedural animated fireworks made from randomized particle trajectories and additive-looking glow. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| flow_mapping.shader flow_mapping.cs |
Animates a texture along a flow map using offset samples and periodic blending to hide resets. | MIT |
| fluid_dynamics.compute fluid_dynamics.cs |
Compute-based 2D fluid-like feedback simulation using two render textures swapped between frames. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| Foam.shader | Procedural animated foam made from three smoothly blended Voronoi layers, with color and alpha output. | MIT |
| fog.shader | Textured material with exponential squared fog based on camera distance. | MIT |
| FogOfWar.shader FogOfWar.cs |
Persistent fog-of-war map updated with circular reveals; a second pass displays the explored map. | MIT |
| font.shader font.png |
Renders characters by sampling cells from the supplied font atlas texture. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 · ShaderToy 2 |
| fractal_image.shader | Generates an abstract fractal image directly from iterative fragment-shader calculations. | MIT |
| fur.shader | Procedural layered fur texture with leopard markings, noise and strand shading. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| FurTextureGenerator.shader FurTextureGenerator.cs |
Generates and exports fur-like textures using domain-warped noise and line integral convolution, with optional normal-based lighting. | MIT |
| gabor.shader | Visualizes a configurable Gabor kernel: a sinusoidal signal multiplied by a Gaussian envelope. | MIT |
| gear_wheel.shader | Raymarches a procedural gear-wheel distance field with reconstructed normals and diffuse lighting. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| grayscale.shader | Converts an input texture to grayscale. | MIT |
| helix.shader | Raymarches a procedural helical tube using a repeated angular distance field. | MIT |
| hell.shader | Raymarches a turbulent, noise-driven volumetric fire/smoke scene. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| hsv.shader | Converts RGB to HSV, adjusts hue/saturation/value, then converts back to RGB. | MIT |
| hypsometric_map_generator.shader | Builds a procedural heightmap and maps elevation bands to a hypsometric color palette. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| I.shader | Compact shader-code experiment generating an animated grayscale, layered 3D-noise image. | MIT |
| image_compression.shader | Reconstructs a built-in 128 x 128 image from packed 4-bit palette indices and a 16-color palette, without an external texture. | MIT |
| ImageToSDFRenderer.shader ImageToSDFGenerator.cs ImageToSDFRenderer.cs |
Converts a source image to a signed distance texture, then raymarches its extrusion into the camera image at a selected scene position. | MIT |
| implicit.shader | Draws 2D implicit equations using a gradient-based distance estimate; includes circle and line examples. | MIT |
| instancing.shader instancing.cs |
Draws a large field of textured grass quads with GPU instancing and structured-buffer instance data, including shadow rendering. | MIT |
| integer_hash.shader | Visualizes integer-based pseudo-random hashing as an RGB pattern. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| interior_mapping.shader | Simulates room interiors behind a flat facade by intersecting the view ray with virtual room walls. | MIT |
| isolines.shader | Extracts contour lines from an input texture's scalar values. | MIT |
| isolines2.shader | Extracts contour bands from an input texture using fractional color thresholds and screen-space derivatives, with adjustable density and thickness. | MIT |
| JumpFlooding3D.compute JumpFlooding3D.shader JumpFlooding3D.cs |
Builds a colored 3D nearest-seed volume with jump flooding and renders it with volumetric sampling. | MIT |
| Labyrinth.shader Labyrinth.cs |
Procedurally draws a cube labyrinth from a bit-packed occupancy grid stored in a structured buffer. | MIT |
| lava.shader | Animated red lava-like texture generated by nested 3D fractal noise. | MIT |
| liquid.shader | Approximates liquid in a container with a movable fill boundary, animated wave/noise detail and separate front/back-face coloring. | MIT |
| mandelbulb.shader | Raymarches a Mandelbulb fractal with normal estimation and soft shadows; supports fullscreen and scene-object rendering modes. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| map_projection.shader map_projection.cs |
Projects selected mesh triangles into a top-down terrain-map texture and accumulates their colored footprints. | MIT |
| map_trees.shader map_trees.cs |
Creates a top-down texture showing the positions of trees painted on a Unity Terrain. | MIT |
| matrix_example.shader | Minimal matrix/vertex-transform example drawing a red fullscreen quad. | MIT |
| maze.shader | Procedural maze-like pattern using randomly oriented diagonal bands in a repeating UV grid. | MIT |
| mesh_deformation.compute mesh_deformation.cs |
Compute-driven mesh deformation: moves vertices inside a brush volume and updates the mesh from the results. | MIT |
| mesh_unwrapping.shader | Draws mesh triangles in UV space to visualize the unwrapped mesh layout. | MIT |
| metaballs.shader | Raymarches smoothly merged spheres using an exponential smooth-min distance operation. | MIT |
| MipmapLevel.shader | Visualizes isotropic texture mip levels with a color palette derived from screen-space UV gradients. | MIT |
| mirror_effect.shader | Mirrors selected halves of a texture horizontally or vertically. | MIT |
| mona_lisa.shader | Reconstructs a stylized Mona Lisa from packed triangle coordinates and colors stored in shader code. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| mrt.shader mrt.cs |
Minimal multiple-render-target example writing red, green, blue and white outputs to four render textures in one pass. | MIT |
| negation.shader | Inverts an input texture's RGBA values. | MIT |
| no_interpolation.shader | Demonstrates the nointerpolation modifier to keep per-primitive values constant across a triangle. | MIT |
| noise.shader | Minimal procedural grayscale pseudo-random noise texture. | MIT |
| noise_transition.shader | Alternates between two textures through an animated pseudo-random dissolve mask. | MIT |
| normal_extrusion.shader | Displaces mesh vertices along their normals using a texture's red channel and visualizes the displacement height. | MIT |
| normal_map_diffuse.shader | Transforms tangent-space normal-map vectors into world space for diffuse lighting. | MIT |
| normal_map_generator.shader | Derives normals from an input image using a Sobel filter and applies diffuse/specular lighting; comments list known distance and specular issues. | MIT |
| notebook_drawings.shader notebook_drawings.cs |
Camera post-process converting the scene into pencil-style notebook drawings with hatching and a paper-grid treatment. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| NurbsCurve.shader NurbsCurve.cs |
Evaluates a NURBS curve on the GPU from weighted control points and knots, then draws it as a procedural line strip. | MIT |
| NurbsHair.shader NurbsHair.cs |
Procedural NURBS hair strands with configurable density, shape, wind, colors and normal-debug modes. | MIT |
| NurbsSurface.shader NurbsSurface.cs |
Procedurally evaluates a weighted NURBS surface and its derivatives for normals, with checkerboard lighting. | MIT |
| ocean.shader ocean.cs |
Depth-aware camera integration of the Seascape ocean renderer, combining procedural waves and water shading with the scene. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| oil.shader | Kuwahara image filter selecting low-variance neighborhoods to create an oil-painting effect. | MIT |
| oren_nayar.shader | Raymarched constructive solid geometry example shaded with the Oren-Nayar rough diffuse reflection model. | MIT |
| orthogonal_sphere.shader | Reconstructs a sphere-like surface from 2D coordinates and applies diffuse lighting for an orthographic sphere illustration. | MIT |
| outline.shader outline.cs |
Two-pass mesh outline using expanded back faces; the companion script controls highlighting for selected objects. | MIT |
| paint.shader paint.cs |
Mouse-driven screen painting with selectable brush masks, size and color. | MIT |
| paint3D.shader paint3D.cs |
Minimal scene-object painting template: raycasts against a mesh collider and visualizes the brush hit in texture UV coordinates. | MIT |
| ParticleCollision.compute ParticleCollision.shader ParticleCollision.cs |
Simulates colored 2D particles with wall and particle collisions in a compute buffer; a graphics shader draws the particle discs from that buffer. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| pbr_specular_roughness.shader | Physically based material using a specular/roughness workflow with GGX distribution, Smith visibility and energy conservation. | MIT |
| PencilEffect.shader PencilEffect.cs |
Pencil-drawing camera post-process combining luminance gradients, edge strokes, hatching and procedural noise. | MIT |
| photoshop_blends.shader | Demonstrates selectable Photoshop-style layer blending modes, including multiply, screen, overlay, dodge/burn and HSV-based modes. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| pillar.shader | Raymarches a procedural pillar assembled with cylindrical distance fields and repeated cutouts, using directional-derivative lighting. | MIT |
| pixelation.shader | Pixelates a texture by snapping UVs to a configurable grid. | MIT |
| Planet.shader Planet.cs |
Depth-aware raycast sphere/planet overlay with spherical coordinate grid visualization and diffuse shading. | MIT |
| point_cloud.shader point_cloud.cs |
Draws a GPU-buffer point cloud procedurally, with configurable coloring and procedural noise. | MIT |
| point_cloud_with_shadow.shader point_cloud_with_shadow.cs |
Deferred point-cloud rendering with G-buffer outputs and a custom shadow workflow; intended for DirectX 11. | MIT |
| polygon.shader | Draws an arbitrary 2D polygon from a signed distance function. | MIT |
| pom.shader | Parallax occlusion mapping: marches through a height texture to offset surface UVs, then applies textured lighting. | MIT |
| posterize.shader | Reduces texture colors to a configurable number of discrete levels. | MIT |
| procedural_column_chart.shader | Draws a column chart with procedural bars, numeric values and letter labels entirely in the shader. | MIT |
| procedural_font.shader | Draws alphabetic glyphs from analytic distance functions without a font texture. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| ProceduralGeometry.shader ProceduralGeometry.cs |
Draws mesh geometry from a structured buffer containing positions, normals, tangents and UVs, with textured shading. | MIT |
| ProceduralSkybox.shader | Minimal procedural skybox: derives a world-space view direction and draws an upward grayscale gradient, with black below the horizon. | MIT |
| ProceduralSphereTessellation.shader ProceduralSphereTessellation.cs |
Generates a sphere from a procedural triangle grid, with configurable radius and subdivision count. | MIT |
| quad_tessellation.shader | Hardware tessellation example for quad patches; requires quad topology to be preserved on model import. | MIT |
| radial_blur_2k18.shader | Applies radial multi-sample blur to a procedurally generated, color-banded noise image. | MIT |
| raycasting_cylinder.shader | Analytically intersects rays with a finite cylinder and its end caps, then shades the resulting normals. | MIT |
| raymarched_plasma.shader | Compact raymarched plasma effect built from a trigonometric procedural field. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| raymarching_cubemap.shader | Raymarches a sphere and samples an environment cubemap for reflective surface/background rendering. | MIT |
| raymarching_direct_compute.compute raymarching_direct_compute.cs |
Renders a lit signed-distance sphere directly into a render texture with a compute shader and displays the result. | MIT |
| raymarching_full_integration.shader raymarching_full_integration.cs |
Integrates a raymarched box into the camera image using reconstructed view rays and scene depth for occlusion. | MIT |
| raymarching_materials.shader | Raymarches several distance-field shapes while carrying material color alongside the distance value. | MIT |
| raymarching_materials_integration.shader | Scene-object multi-material raymarcher that clips rays missing the distance-field shapes; uses the proxy mesh depth rather than writing the ray-hit depth. | MIT |
| raymarching_point_lights.shader | Raymarches a sphere with several colored point lights and distance attenuation. | MIT |
| raymarching_procedural_cubemap.shader | Adds an analytically generated environment/background to a multi-material distance-field scene. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| raymarching_repetition.shader | Demonstrates spatial repetition of a sphere distance field to create a repeating 3D scene. | MIT |
| raymarching_room.shader | Raymarches a room and sphere with material-dependent diffuse/specular lighting and soft shadows. | MIT |
| raymarching_room_with_reflection.shader | Extends the room scene with secondary reflection rays from the shiny sphere. | MIT |
| ReactionDiffusion.shader ReactionDiffusion.cs |
Two-pass, persistent reaction-diffusion simulation producing evolving chemical-pattern textures. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| rectangles3.shader | Draws three colored rectangles using arithmetic masks as an alternative to conditional branches. | MIT |
| relief.shader | Raymarches a texture-derived height relief and shades its estimated surface normals. | MIT |
| rhodium.shader | Two-pass raymarched refractive scene with procedural surface detail, soft shadows and depth-of-field blur from an intermediate buffer. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| rw_structured_buffer.shader rw_structured_buffer.cs |
Writes displaced vertex positions from a graphics shader to a read/write structured buffer so C# can update the collider mesh. | MIT |
| sample_texture.shader | Triplanar texture mapping on a raymarched box, weighted by the reconstructed surface normal. | MIT |
| save_material.compute save_material.cs save_material_editor.cs |
Renders a selected material to an image and reads pixels through a compute buffer, with gamma/brightness controls and an editor inspector. | MIT |
| save_render_texture.compute save_render_texture.cs |
Generates an animated two-color render texture and copies its pixels to a buffer for image saving from C#. | MIT |
| scale.shader | Demonstrates scaling vertex positions in world space before applying the view-projection matrix. | MIT |
| screen_space_curvature.shader | Visualizes surface curvature estimated from screen-space derivatives of surface normals. | MIT |
| seascape.shader | Standalone procedural ocean scene with height-field ray intersection, detailed wave normals, sky reflection and water shading. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| shader_dynamic_array.shader shader_dynamic_array.cs |
Passes a variable-length list of shape positions from C# to a shader and draws multiple procedural quads over a texture. | MIT |
| shader_GUI_variant_01.shader | Places a texture at its native pixel dimensions in the center of the screen, with colored regions around its borders. | MIT |
| ShaderDebugging.shader ShaderDebugging.cs |
Transfers a custom value from a graphics shader to C# through an RWStructuredBuffer for inspection. | MIT |
| shadowcaster.shader | Shows how a custom shadow-caster pass can produce a shadow shape independently of the visible mesh material. | MIT |
| ShadowMapping.shader ShadowMapping.cs |
Camera post-process demonstrating shadow mapping by comparing reconstructed scene positions against a light-space depth map. | MIT |
| ShadowVolumeForSphereOnly.shader | Stencil shadow-volume experiment specialized for a sphere, using separate front/back depth tests and a shading pass. | MIT |
| shape_blending.shader | Animates a smooth transition between sphere and box distance fields and raymarches the blended shape. | MIT |
| shape_blending_with_penumbra.shader | Adds a ground plane, reconstructed normals and soft-shadow penumbrae to the sphere/box morphing example. | MIT |
| sierpinski.shader | Raymarches a Sierpinski-style fractal with normal-based shading and ambient occlusion. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| skybox_blur.shader | Blurs a cubemap skybox with multiple directional samples and an adjustable blur radius. | MIT |
| smallpt.compute smallpt.cs |
Progressive Monte Carlo path-tracing compute example using a sphere scene and ping-pong accumulation; source comments flag exposure/seed issues. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| snow.shader | Procedural animated falling-snow effect made from layered particle-like flakes. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| soft_shadow.shader | Analytic sphere-and-plane scene demonstrating soft sphere shadows and sphere ambient occlusion. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| sonar.shader | Draws a repeating expanding/fading blue ring as a procedural sonar pulse. | MIT |
| sphere_mapping.shader | Maps a 2D texture onto a raymarched sphere using spherical surface coordinates. | MIT |
| spheres.shader | Draws many small animated 2D circles with pseudo-random positions. | MIT |
| SquareRoot.compute SquareRoot.cs |
Computes a square root in double precision with Newton-Raphson iteration and reads the result back to C#. | MIT |
| stadium.shader | Procedurally raymarches a football stadium, including pitch markings, goals, audience structures and sky. | MIT |
| strauss.shader | Implements the Strauss material model with metallic/smoothness controls and diffuse/specular lighting. | MIT |
| structured_buffer.compute structured_buffer.shader structured_buffer.cs |
Compute raymarcher with temporal accumulation/motion blur in a structured buffer; the graphics shader displays the buffer directly. | MIT |
| subsurface_scattering.shader | Raymarched sphere demonstrating approximate subsurface scattering by sampling the distance field along lighting directions. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| subtexture.shader | Places a smaller texture inside a larger texture at a configurable center and size. | MIT |
| terrain_procedural.shader | Raymarches a procedurally generated fBM terrain height field and colors it by elevation. | MIT |
| terrain_shader_tessellation_diffuse.shader | Unity Terrain shader combining up to four splat/normal-map layers, triangle tessellation, Lambert lighting and shadow support. | MIT |
| terrain_with_heigthmap.shader | Raymarches terrain from a supplied heightmap and colors height bands; a blurred high-resolution heightmap is recommended in the source. | MIT |
| tessellation.shader | Triangle hardware tessellation example with texture-based displacement and textured output. | MIT |
| TetrahedralMesh.compute TetrahedralMesh.shader TetrahedralMesh.bin TetrahedralMesh.cs |
Loads a tetrahedral mesh from the supplied binary file and interactively removes tetrahedra containing a movable brush point; the compute shader uses ray/triangle parity tests and the surface shader renders retained cells. | MIT |
| texture_array.shader | Samples a selectable slice of a Texture2DArray with a shared sampler. | MIT |
| texture_mapping.shader | Demonstrates selecting among 24 textures within a single shader pass. | MIT |
| texture_variation.shader | Reduces visible texture repetition by blending offset samples using a procedural variation function. | MIT |
| TextureToBlocks.compute TextureToBlocks.shader TextureToBlocks.cs |
Generates a colored 3D render texture, including terrain-like density and shadows, and displays occupied cells as procedural cubes. | MIT |
| the_smallest_shader.shader | Minimal visible Unity ShaderLab vertex/fragment shader example. | MIT |
| tiny_clouds.shader | Compact procedural cloud rendering using layered noise and fragment-shader volume sampling. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| toonify.shader toonify.cs |
Camera cartoon filter combining HSV color quantization with image-edge detection. | MIT |
| transmission.shader | Adds backlighting/transmission to a textured surface for thin materials such as cloth or vegetation. | MIT |
| triangle.shader | Minimal procedural triangle rendering example. | MIT |
| triangle2.shader | Draws a 2D triangle from a signed distance function with smooth colored boundaries. | MIT |
| TriangleStrip.shader TriangleStrip.cs |
Expands triangle-strip input into a procedural triangle list and colors the triangles in the shader. | MIT |
| tribute_to_marc_antoine_mathieu.shader | Raymarched architectural/abstract scene assembled from repeated and smoothly blended distance-field primitives. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| truchet.shader | Procedural colored Truchet-style tiling built from randomized arcs on a triangular grid. | MIT |
| tunnel.shader | Animated tunnel illusion using reciprocal-radius and polar-angle coordinates to sample procedural noise. | MIT |
| twister.shader | Procedural animated twisting-ribbon/twister effect rendered directly in UV space. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| unlit_double_sided.shader | Basic textured unlit material with back-face culling disabled. | MIT |
| unlit_geometry_shader.shader | Geometry-shader example expanding each input vertex into a blue quad made from two triangles. | MIT |
| unlit_lightmap.shader | Unlit textured material multiplied by Unity's baked lightmap, including lightmap decoding. | MIT |
| unlit_see_through.shader | Two-pass see-through/window effect using captured scene color, with grayscale, grain and color-processing variants. | MIT |
| unlit_splat_mapping.shader | Unlit blending of three terrain textures using control weights and texture-derived height/depth information. | MIT |
| unlit_transparency.shader | Basic textured unlit material with standard source-alpha transparency. | MIT |
| UnsignedInteger64.compute UnsignedInteger64.cs |
Compute example adding 64-bit unsigned integers; companion comments require Unity 2020.2.0a8 or later with DirectX 12. | MIT |
| uv.shader | Visualizes mesh UV coordinates as red/green colors. | MIT |
| vector_displacement_mapping.shader | Hardware-tessellated material displacing vertices with a three-channel vector displacement texture. | MIT |
| vertex_colors.shader | Displays mesh vertex colors directly. | MIT |
| VertexShaderImage.shader VertexShaderImage.cs |
Generates an image in the vertex shader by drawing a dense procedural grid and evaluating a polar-coordinate pattern per vertex. | MIT |
| VertexShaderTessellation.shader VertexShaderTessellation.cs |
Subdivides input triangles procedurally in the vertex shader, without the hardware hull/domain tessellation stages. | MIT |
| VertexShaderTessellationStandard.shader VertexShaderTessellationStandard.cs |
Vertex-shader tessellation with optional Phong smoothing, Unity Standard surface shading and shadow support. | MIT |
| vignette_filter.shader | Darkens image edges with a configurable vignette mask. | MIT |
| VisualAI.compute VisualAI.cs |
Estimates how much of a target is visible by comparing target-only and occluder depth textures and counting visible pixels on the GPU. | MIT |
| volume_noise.shader | Raymarches a 3D noise-based distance field with smooth shape operations and diffuse shading. | MIT |
| volume_texture.shader volume_texture.cs |
Creates a procedural Texture3D in C# and renders the stored volume by sampling along view rays. | MIT |
| VolumeSpotLight.shader VolumeSpotLight.cs |
Depth-aware camera effect integrating a volumetric spotlight inside an analytic cone; the source describes this as an early template. | MIT |
| volumetric_bunny.shader | Renders a volumetric bunny from a bit-packed voxel dataset embedded in shader code, with trilinear voxel interpolation. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| volumetric_clouds.shader | Volumetric cloud rendering by accumulating density from 3D fractal noise along view rays. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 · ShaderToy 2 |
| volumetric_lighting.shader volumetric_lighting.cs |
Camera effect producing red volumetric-light-like rays by accumulating warped samples of a supplied pattern texture; the shader uses a procedural screen-space construction. | MIT |
| volumetric_machine.shader | Raymarches a repeated mechanical structure built from capsule distance fields inside a scene-object volume. | MIT |
| VolumetricOvercastClouds.shader | Procedural skybox with an overcast cloud layer, simplex fBM density and volumetric raymarching. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| voronoi_pattern.shader | Generates a colored animated Voronoi pattern from pseudo-random feature points. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| VoronoiCones.shader VoronoiCones.cs |
Rasterizes overlapping cones with depth testing to build a 2D Voronoi diagram and display its seed points. | MIT |
| VoronoiDualGraph.compute VoronoiDualGraph.shader VoronoiDualGraph.cs |
Generates a Voronoi texture, detects three-cell junctions to construct its Delaunay dual triangles, and renders the graph. | MIT |
| VoronoiEdges.compute VoronoiEdges.cs |
Builds a dynamic Voronoi texture and extracts junction vertices on the GPU; C# assembles cell-edge geometry from the results. | MIT |
| voxel_torus.shader | Traverses a voxelized torus field and shades visible cells with a grid/edge treatment. | MIT |
| VoxelRaymarching.shader | Compares voxel traversal methods on a sphere: maximum-norm SDF marching and three DDA variants. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| vtf.shader | Vertex texture fetch example sampling a height texture in the vertex stage to offset clip-space Y; the fragment stage displays the same texture. | MIT |
| water_caustics.shader | Animated procedural water-caustic light pattern. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| waveform.shader waveform.cs |
Displays an audio waveform from 512 samples supplied by a C# AudioSource component. | MIT |
| wireframe.shader | Draws a wireframe-style pattern using screen-space derivatives, with an optional transparent interior. | MIT |
| wood_texture.shader | Procedural wooden-plank texture using sine-based plank bands, elongated noise grain and layered color variations. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
DXR/PathTracing
| Files | Short description | License |
|---|---|---|
| DXR/PathTracing/IndirectDiffuse.shader DXR/PathTracing/PathTracing.raytrace DXR/PathTracing/ProgressiveRendering.shader DXR/PathTracing/PathTracing.cs |
DirectX 12 progressive path tracer: PathTracing.raytrace generates camera rays and handles misses; IndirectDiffuse.shader handles mesh hits and indirect diffuse bounces; ProgressiveRendering.shader accumulates frames. PathTracing.cs builds and dispatches the ray-tracing pipeline. | MIT |
FLD
| Files | Short description | License |
|---|---|---|
| FLD/fld_gpu.compute FLD/acer.txt FLD/fld_gpu.cs FLD/quercus.txt |
Computes Fisher linear discriminant scores for feature vectors from the supplied acer/quercus datasets; the C# script loads data and retrieves GPU results. | MIT |
GLSL
| Files | Short description | License |
|---|---|---|
| GLSL/basic_montecarlo.shader | GLSL Monte Carlo path-tracing example with diffuse bounces and a procedural scene; this version omits progressive accumulation. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| GLSL/divide_screen_effect.shader | GLSL procedural screen-division transition using animated radial/trigonometric masks. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| GLSL/geometry_shader_01.shader | Minimal GLSL pass-through geometry shader that forwards triangles unchanged and renders them blue. | MIT |
| GLSL/LabyrinthGLES.shader GLSL/LabyrinthGLES.cs |
OpenGL ES labyrinth renderer using a floating-point texture as a bit-packed occupancy buffer for devices without vertex-stage structured buffers. | MIT |
| GLSL/quicksort.shader GLSL/quicksort_input.tga GLSL/quicksort_output.png |
GLSL image-sorting example arranging pixels by their green channel; source comments note remaining line artifacts. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| GLSL/ShaderStorageBufferObject.compute GLSL/ShaderStorageBufferObject.cs |
Unity/OpenGL compute example writing procedural fBM color data through a shader storage buffer object and displaying it from C#. | MIT |
| GLSL/tessellation.shader | GLSL tessellation-control, tessellation-evaluation and geometry stages demonstrating subdivided geometry with wireframe output. | MIT |
GeometryShaders
| Files | Short description | License |
|---|---|---|
| GeometryShaders/Cloner.shader | Geometry shader that emits translated copies of each incoming triangle while preserving texture coordinates. | MIT |
| GeometryShaders/Cube.shader | Generates all twelve cube triangles in a geometry shader when processing the first input triangle, with a procedural checkerboard pattern. | MIT |
| GeometryShaders/Quadrangulation.shader | Tessellates input triangles, then emits a small axis-aligned quad at each tessellated triangle center using a geometry shader. | MIT |
| GeometryShaders/Wireframe.shader | Generates barycentric edge coordinates in a geometry shader and uses them for anti-aliased transparent wireframe rendering. | MIT |
HDR
| Files | Short description | License |
|---|---|---|
| HDR/Bloom.shader HDR/EyeAdaptation.shader HDR/EyeHistogram.compute HDR/Uber.shader HDR/HDR.cs |
HDR camera pipeline: EyeHistogram.compute builds a luminance histogram; EyeAdaptation.shader derives and temporally adapts exposure; Bloom.shader extracts and filters bright regions; Uber.shader composites bloom and exposure. HDR.cs orchestrates the stages. | MIT |
MarchingCubes
| Files | Short description | License |
|---|---|---|
| MarchingCubes/MarchingCubes.compute MarchingCubes/MarchingCubes.shader MarchingCubes/ScalarField.compute MarchingCubes/MarchingCubes.cs |
Converts a GPU scalar field to a triangle mesh: ScalarField.compute generates a fractal density/color volume; MarchingCubes.compute extracts the isosurface; MarchingCubes.shader renders it with optional normal/wireframe views. MarchingCubes.cs manages buffers and drawing. | MIT |
MeshShaderRTX
| Files | Short description | License |
|---|---|---|
| MeshShaderRTX/MeshShaderPlugin.cpp MeshShaderRTX/MeshShaderPlugin.cs MeshShaderRTX/MeshShaderPlugin.txt |
Native OpenGL NVIDIA mesh-shader example: MeshShaderPlugin.cpp embeds a mesh shader emitting one triangle and a fragment shader coloring barycentric coordinates; MeshShaderPlugin.cs invokes the native render event. Requires the NVIDIA extensions and compiled plugin DLL. | MIT |
Multipass
| Files | Short description | License |
|---|---|---|
| Multipass/FluidMosaic.shader Multipass/FluidMosaic.cs |
Interactive multi-buffer fluid mosaic: advects data and updates a deforming triangular pattern, with mouse-driven interaction. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| Multipass/FluidSimulation.shader Multipass/FluidSimulation.cs |
2D fluid simulation with procedural obstacles, advection, buoyancy, density injection, divergence, pressure iteration and velocity projection. | MIT |
| Multipass/NoiseTexture.shader Multipass/NoiseTexture.cs |
Generates a 256 x 256 RGBA pseudo-random noise texture and demonstrates manual bilinear sampling in a second pass. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 · ShaderToy 2 |
| Multipass/PseudoFluidSystem.shader Multipass/PseudoFluidSystem.cs |
Multi-buffer pseudo-fluid feedback system with separate simulation stages and a final visualization pass. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| Multipass/SatinFlow.shader Multipass/SatinFlow.cs |
Interactive multi-pass flow simulation with advection, smoothing and derivative operations, rendered with satin-like specular shading. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| Multipass/StrangeFluid.shader Multipass/StrangeFluid.cs |
Compact two-pass fluid-like feedback effect driven by neighboring texel samples and a persistent render texture. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
| Multipass/WindFlowMap.shader Multipass/WindFlowMap.cs |
Multi-buffer wind/flow-map visualization with generated noise, persistent moving particle data and a compositing pass. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
NeuralShaders
| Files | Short description | License |
|---|---|---|
| NeuralShaders/NeuralSDF.shader NeuralShaders/neural_sdf.py |
URP raymarcher evaluating a mesh-derived distance field with embedded SIREN neural-network weights; neural_sdf.py trains a network from a triangle mesh and exports shader-compatible code. | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. ShaderToy 1 |
Physics/SpherePhysics
| Files | Short description | License |
|---|---|---|
| Physics/SpherePhysics/SpherePhysics.compute Physics/SpherePhysics/SpherePhysics.shader Physics/SpherePhysics/SpherePhysics.cs Physics/SpherePhysics/SpherePhysics.txt |
Compute-driven sphere physics with gravity, drag, bounds and sphere collisions; SpherePhysics.cs updates simulation parameters and draws instances indirectly; SpherePhysics.shader reads simulated positions for Standard surface rendering. | MIT |
ReShade
| Files | Short description | License |
|---|---|---|
| ReShade/AdvancedCRT.shader ReShade/AdvancedCRT.cs |
Camera port of ReShade's CRT effect, including scanlines, gamma, overscan, curved-screen distortion and corner masking. | MIT |
| ReShade/Cartoon.shader ReShade/Cartoon.cs |
Camera port of ReShade's Cartoon effect, emphasizing image edges with adjustable strength and slope. | MIT |
| ReShade/DepthHaze.shader ReShade/DepthHaze.cs |
Depth-dependent haze/blur with horizontal and vertical filtering followed by fog-color composition. | MIT |
| ReShade/PPFX_SSDO.shader ReShade/PPFX_SSDO.cs |
Screen-space directional occlusion and approximate indirect color bounce, with depth/normal reconstruction and bilateral filtering. | MIT |
ShaderReplacement
| Files | Short description | License |
|---|---|---|
| ShaderReplacement/MainShader.shader ShaderReplacement/SecondShader.shader ShaderReplacement/MainShader.mat ShaderReplacement/ShaderReplacement.cs ShaderReplacement/ShaderReplacement.renderTexture |
Demonstrates camera shader replacement: MainShader.shader is the original textured surface material; SecondShader.shader renders replacement geometry in blue; ShaderReplacement.cs captures the alternate rendering in a render texture. | MIT |
URP
| Files | Short description | License |
|---|---|---|
| URP/BulletMarksURP.shader URP/BulletMarksURP.cs |
URP lit material masking capsule-shaped bullet marks from a structured buffer populated from C# capsule colliders. | MIT |
| URP/Condensation.shader | Transparent URP rain/condensation effect with static droplets, falling drops and trails; includes VR/stereo support. | MIT |
| URP/Energy.shader | Transparent URP procedural energy effect built from fractal noise and animated layers; includes VR/stereo support. | MIT |
| URP/Flame.shader | Procedural URP flame using layered noise, flame coloring and premultiplied-style transparency. | MIT |
| URP/ForwardLitURP.shader | Custom URP forward-lit material template with lighting, shadow casting, depth-only and depth/normal passes. | MIT |
| URP/HexagonsURP.shader | Transparent URP hexagonal-grid effect using analytic cell coordinates; includes VR/stereo support. | MIT |
| URP/PaintURP-Unlit.shader URP/PaintURP.shader URP/PaintURP.cs |
Interactive URP mesh painting: PaintURP.cs raycasts the mesh and manages paint render targets; PaintURP.shader writes spherical/line brush masks in UV space using multiple render targets; PaintURP-Unlit.shader displays the painted material. | MIT |
| URP/ProceduralDissolveURP.shader | URP fBM threshold/noise material with shadow, depth and normal passes, suitable as a procedural dissolve-pattern example. | MIT |
| URP/RenderToTextureURP.shader URP/RenderToTextureURP.cs |
Renders a mesh in UV space into a texture and applies a configurable bokeh-disc blur. | MIT |
| URP/ScannerEffect.shader | Transparent URP animated scanner-line/pattern effect with VR/stereo support. | MIT |
Unity2021
| Files | Short description | License |
|---|---|---|
| Unity2021/BoundingBox.compute Unity2021/BoundingBox.cs |
Computes a mesh's world-space axis-aligned bounding box on the GPU using atomic minimum/maximum operations. | MIT |
| Unity2021/Cobalt.shader | DirectX 12 Shader Model 6.6 pack/unpack-intrinsics demonstration; the source requires Windows 11 and Unity 2023.2 or later. | MIT |
| Unity2021/DeleteTriangles.compute Unity2021/DeleteTriangles.cs |
Interactively removes clicked mesh triangles by editing the GPU index buffer; this example targets 16-bit indices. | MIT |
| Unity2021/Derivatives.compute Unity2021/Derivatives.cs |
Computes a normal-map-like texture from image luminance using ddx/ddy in a compute shader; the C# example displays the result. | MIT |
| Unity2021/MeshClosestPoint.compute Unity2021/MeshClosestPoint.cs |
Finds candidate closest points on mesh triangles with a compute shader, then selects/uses the nearest result in C#. | MIT |
| Unity2021/NurbsSurfaceMeshCompute.compute Unity2021/NurbsSurfaceMeshCompute.cs |
Generates a NURBS surface mesh directly into a GPU vertex buffer, including positions, normals, tangents and UVs. | MIT |
| Unity2021/PhongTessellation.compute Unity2021/PhongTessellation.cs |
Subdivides mesh triangles with a compute shader and applies Phong smoothing before writing positions, normals and UVs into a vertex buffer. | MIT |
| Unity2021/ProceduralGrass.compute Unity2021/ProceduralGrass.shader Unity2021/ProceduralGrass.cs |
Generates and animates grass geometry in GPU mesh buffers, then shades it with a cutout Standard surface shader; comments note an Intel GPU issue. | MIT |
VolumeParticlesSystem
| Files | Short description | License |
|---|---|---|
| VolumeParticlesSystem/VolumeParticleSystem.shader VolumeParticlesSystem/VolumeParticleSystem.cs |
Procedural 3D cube-particle system with parabolic motion, lifetime/color controls and Voronoi cutout shading. C# injects draw calls into camera/light command buffers; the shader writes deferred G-buffer outputs. | MIT |
VolumeRenderTexture
| Files | Short description | License |
|---|---|---|
| VolumeRenderTexture/VolumeRenderTexture.compute VolumeRenderTexture/VolumeRenderTexture.shader VolumeRenderTexture/VolumeRenderTexture.cs |
Persistent 3D painting example: VolumeRenderTexture.compute adds a small spherical brush to the previous volume; the graphics shader raymarches the accumulated texture. C# swaps the 3D render textures and supplies brush movement. | MIT |
VolumeTexture
| Files | Short description | License |
|---|---|---|
| VolumeTexture/VolumeRendering.shader VolumeTexture/GenerateVolumeTexture.cs VolumeTexture/GenerateVolumeTextureAsync.cs VolumeTexture/StanfordBunny.fbx VolumeTexture/VolumeRendering.cs |
Converts polygonal meshes to volume textures with synchronous/editor and asynchronous generator scripts, then renders the saved volume using VolumeRendering.cs and VolumeRendering.shader with threshold, intensity and slicing controls. | MIT |
demoscene/shader_model_3
| Files | Short description | License |
|---|---|---|
| demoscene/shader_model_3/main.cpp | Standalone Windows/DirectX 9 C++ startup embedding an HLSL vertex shader and animated procedural lava pixel shader; compiles them for Shader Model 3.0 and draws a fullscreen quad outside Unity. | MIT |
procedural textures
| Files | Short description | License |
|---|---|---|
| procedural textures/boxes.shader | Procedural repeating box/diamond-like grayscale pattern generated from UV arithmetic. | MIT |
| procedural textures/feathers.shader | Procedural red feather-like line pattern generated without an input texture. | MIT |
| procedural textures/heptagon.shader | Draws a configurable seven-sided polygon from an analytic distance expression. | MIT |
| procedural textures/metal.shader | Raymarches a repeating, rounded geometric relief to create a lit metal-like surface pattern. | MIT |
| procedural textures/octagon.shader | Constructs an octagonal procedural motif from line and circle distance calculations. | MIT |
| procedural textures/random_tiles.shader | Colors UV-grid tiles with pseudo-random values derived from their cell coordinates. | MIT |
| procedural textures/ribbons.shader | Generates colorful intertwined ribbon-like bands from transformed UV coordinates. | MIT |
| procedural textures/torn_fabric.shader | Red torn-fabric-like fractal pattern generated by repeated quadratic transformations of UV coordinates. | MIT |
| procedural textures/wheat_color.shader | Produces a uniform wheat-colored background with subtle radial darkening and a gamma-style color adjustment. | MIT |
surface_shaders
| Files | Short description | License |
|---|---|---|
| surface_shaders/BillboardMetallic.shader | Camera-facing billboard implemented as a Standard metallic surface shader, with albedo, normal and metallic/smoothness maps. | MIT |
| surface_shaders/Cellular.shader | Standard surface material using a procedural cellular pattern for albedo. | MIT |
| surface_shaders/clip_box.shader | Clips a PBR textured mesh against a configurable box-shaped region. | MIT |
| surface_shaders/debris.shader | Instanced Standard surface material assigning a pseudo-random scale to each mesh instance. | MIT |
| surface_shaders/Metallic.shader | Standard metallic-workflow surface material with tint, albedo, normal and metallic/smoothness textures. | MIT |
| surface_shaders/Multitexturing.shader | Averages 24 textures using a shared sampler in a Standard surface shader; includes a UV-dependent workaround discussed in the source comments. | MIT |
| surface_shaders/PBR_double_sided_color.shader | Minimal two-sided Standard surface material with a configurable solid albedo color. | MIT |
| surface_shaders/Specular.shader | Standard specular-workflow surface material with albedo, normal and specular/smoothness maps. | MIT |
| surface_shaders/SubsurfaceScattering.shader | Custom surface-lighting model approximating subsurface transmission, with normal, translucency and specular controls. | MIT |
| surface_shaders/vface.shader | Uses face orientation in a two-sided Standard surface shader to assign different colors to front and back faces. | MIT |
| surface_shaders/Whirlpool.shader | Tessellated Standard surface shader displacing a quad into an animated whirlpool with spiral distortion and clipped outer bounds. | MIT |
| surface_shaders/world_space_uv_mapping_metallic.shader | Standard metallic surface material sampling albedo, normal and metallic maps from world-space XZ coordinates. | MIT |
surface_shaders/terrain
| Files | Short description | License |
|---|---|---|
| surface_shaders/terrain/TerrainShader-AddPass.shader surface_shaders/terrain/TerrainShader-Base.shader surface_shaders/terrain/TerrainShader-FirstPass.shader |
Unity Terrain Standard material: FirstPass blends the initial splat layers with normals and metallic/smoothness data; AddPass handles additional layers; Base supplies the distant base-map material. The dependency declarations connect the three shaders. | MIT |
volumetric texture
| Files | Short description | License |
|---|---|---|
| volumetric texture/Composite.shader volumetric texture/Ray Marching.shader volumetric texture/Render Back Depth.shader volumetric texture/Render Front Depth.shader volumetric texture/Volume.shader volumetric texture/RayMarching.cs |
Camera volume-rendering pipeline: front/back shaders record local entry/exit positions; Ray Marching.shader samples the 3D texture between them; Composite.shader blends it with the scene; Volume.shader marks volume geometry. RayMarching.cs coordinates the render targets and passes. | MIT |
Other repository contents
The TerrainAssets, tools and additional documentation/data files support experimentation but contain no standalone shader source in this snapshot. notepad.txt is a GPU-programming notebook with HLSL/GLSL snippets, rather than a standalone runnable shader. Shader programs embedded in demoscene/shader_model_3/main.cpp and MeshShaderRTX/MeshShaderPlugin.cpp are included above.
Explorer des projets similaires
Chargement…