• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language ShaderLab
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unity material and shader for applying clipped, dithered transparency

unity-dithered-transparency-shader

example

Unity shader to enable a dithered transparency when rendering transparent objects

Use

Uses the material's alpha to determine whether a pixel should be discarded or not. Either a dither matrix or dither texture can be used.

Dither Options

Dither Texture

Texture defining the dither pattern. The "red" channel is used from the texture to compare against the materials alpha.

Dither Scale

The scale of the dither texture in screen-space pixels.

Extending and Reuse

The functions for performing the dither effect are available in the Dither Functions.cginc so they can easily be added to and used with other shaders and functions.

In Visual Shader Builders

Amplify Shader Editor

ShaderForge

More Repositories

1

three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
JavaScript
1,715
star
2

three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
JavaScript
934
star
3

threejs-sandbox

Set of experiments and extensions to THREE.js.
Roff
522
star
4

three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
JavaScript
306
star
5

urdf-loaders

URDF Loaders for Unity and THREE.js with example ATHLETE URDF Files open sourced from NASA JPL
JavaScript
290
star
6

closed-chain-ik-js

A generalized inverse kinematics solver that supports closed chains for parallel kinematics systems, dynamic reconfiguration, and arbitrary joint configuration based on damped least squares error minimization techniques
JavaScript
109
star
7

source-engine-model-loader

Three.js loader for parsing Valve's Source Engine models
JavaScript
60
star
8

unity-clip-shader

Unity shader and scripts for rendering solid clipped geometry
C#
41
star
9

webgl-gpu-power-estimation

Utility for estimating the power of the GPU in the browser using WebGL debug parameters.
JavaScript
37
star
10

collaborative-code-editor

Collaborative code editor using Ace Editor, Code-Mirror, and ShareDB
HTML
32
star
11

unity-custom-shadow-experiments

A few custom shadow implementation experiments within Unity
GLSL
26
star
12

js-framerate-optimizer

Library for tracking and iteratively improving page framerate over time
JavaScript
26
star
13

unity-rendering-investigation

Investigation into different Unity rendering approaches with an eye on performance
C#
25
star
14

threejs-octree

A rough octree implementation to support frustum culling and raycasts in complex THREE.js scenes
JavaScript
25
star
15

webgl-shader-editor

Realtime editor for creating webgl shaders
HTML
23
star
16

xacro-parser

Utility for parsing and converting ROS Xacro files in Javascript.
JavaScript
20
star
17

nasa-urdf-robots

Pre-built URDF files from the open source Robonaut 2 and Valkyrie projects from JSC
HTML
19
star
18

coordinate-frame-converter

A Unity utility for simply converting between different coordinate frames.
C#
19
star
19

unity-wireframe-shader

Unity wireframe material using Geometry Shaders
HLSL
19
star
20

3d-demo-data

Set of gltf models to load in online demos and examples
17
star
21

webgl-precision

Webpage for computing and displaying a devices float and int precision for vertex and fragment shaders.
JavaScript
14
star
22

threading-js

Wrapper for Web Workers for easily running a function from the client without serving the worker a script
JavaScript
14
star
23

threejs-model-loader

THREE.js Model Loader for delegating to the appropriate geometry loader and associated Web Component
JavaScript
13
star
24

webxr-sandbox

Set of experiments and extensions for WebXR with Three.js.
JavaScript
11
star
25

vscode-urdf-preview

VSCode extension for viewing and testing a URDF file
JavaScript
9
star
26

three-sketches

JavaScript
8
star
27

unity-bezier-curve-shader

Unity experiment using geometry, domain, and hull shaders to render bezier curves
GLSL
8
star
28

unity-vector-extensions

Vector extensions to add hlsl-like functionality
C#
6
star
29

webgl-gpu-power-estimation-data

JavaScript
6
star
30

js-struct-data-view

Set of functions used to read and write object data to and from an ArrayBuffer
JavaScript
5
star
31

unity-fragment-sorted-transparency

Visually correct fragment sorted transparency for Unity
ShaderLab
5
star
32

urdf-editor

Text editor for viewing and modifying URDF models.
4
star
33

collada-exporter-js

Collada / DAE Format exporter for THREE js geometry
JavaScript
4
star
34

ply-exporter-js

PLY geometry format exporter for THREE js
JavaScript
4
star
35

ldraw-parts-library

Upload of the LDraw parts library intended to be used for static file loading in github examples.
4
star
36

travel-photo-visualization

Processor and visualizer of EXIF data
HTML
4
star
37

three-transform-dirty-flag

Experimental extension for efficiently keeping matrices and bounds up to date.
JavaScript
3
star
38

ascension-game

2012 UCLA Final Unity Project
C#
3
star
39

react-polymer-component

A generic React.Component for wrapping Polymer Elements and binding events and property data between them
JavaScript
3
star
40

collada-archive-loader-js

THREE js loader for loading a zipped ZAE Collada file
JavaScript
3
star
41

subrip-video-layer-element

Element and player and for displaying and playing a video with SRT subtitles
JavaScript
3
star
42

client-side-zip-server

Intercepting fetch requests and serving zip file data from a ServiceWorker.
JavaScript
3
star
43

plateau-3d-tiles-data

3D Tiles from the Japanese PLATEAU open data set.
2
star
44

urdf-exporter-js

Utility for exporting THREE.js object trees as a URDF file
JavaScript
2
star
45

convert-three-examples-to-imports

Script for converting the javascript and html files in the examples folder of the THREE.js to use es6 imports
JavaScript
2
star
46

pint-unit-investigation

Basic scripts to investigate the available data that can be extracted from Pint
Python
2
star
47

sharedb-builds

Prebuilt versions of the ShareDB Client and OT Types
JavaScript
2
star
48

scriptable-three-renderer

Investigating new options for making the WebGLRenderer more customize-able.
JavaScript
2
star
49

animated-svg-path-element

Polymer element that animates the drawing of SVG paths
JavaScript
2
star
50

image-downloader-chrome-extension

Chrome Extension originally written in 2013 to download sets of images from online albums
JavaScript
1
star
51

scientific-javascript

A proof of concept project that adds a unit notation to Javascript using Sweet.js
JavaScript
1
star
52

source-engine-model-loader-models

Repo of demo models to demo source-engine-model-loader project.
1
star
53

triangle-net-debug

Unity set up for debugging triangulation issues within Triangle.Net
C#
1
star
54

react-reparenting-investigation

An investigation into the performance of reparenting dom elements, the impact of repainting and layout, and how to mitigate the problems in React.
JavaScript
1
star
55

curiosity_mars_rover-mirror

Python
1
star
56

js-async-utilities

Set of utility classes to enable easy Coroutines, Debouncing, and Animation
JavaScript
1
star
57

gkjohnson

1
star
58

gkjohnson.github.io

Personal Website
HTML
1
star
59

dynamic-import-test

JavaScript
1
star
60

index-html-webpack-example

Example config for building a full index.html client app with Webpack
HTML
1
star
61

time-logger-js

Utility library for tracking and tallying function calls in browsers, Node, or Arangodb's Foxx
JavaScript
1
star
62

rust-sandbox

Playground for learning more about Rust.
1
star