uPalette | Centralized management & batch change system | Augmented Reality library
kandi X-RAY | uPalette Summary
kandi X-RAY | uPalette Summary
Centralized management & batch change system of colors for Unity.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uPalette
uPalette Key Features
uPalette Examples and Code Snippets
using UnityEngine;
using UnityEngine.UI;
[AddComponentMenu("")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Outline))]
[ColorSetter(typeof(Outline), "Color")] // Add ColorSetter attribute.
public class OutlineColorSetter : ColorSetter
{
{
"dependencies": {
"com.harumak.upalette": "https://github.com/Haruma-K/uPalette.git?path=/Assets/uPalette"
}
}
Community Discussions
Trending Discussions on uPalette
QUESTION
In OpenGL I'm trying to output an unscaled float from my fragment shader to a FBO color attachment for mouse over value picking. However I am unable to get my fragment shader code to correctly write the value.
I add a color attachment for storing the picking values to the framebuffer I draw to as follows:
...ANSWER
Answered 2017-Feb-19 at 15:26I output using the following (clearly wrong) fragment shader
There's nothing wrong with that fragment shader. Just like vertex attributes, fragment shader output component counts do not have to match the actual destination image's component counts. If your output image has fewer components than the corresponding fragment shader variable, then it will simply take the components that match the image and ignore the rest.
However, you don't have to output a vec4
just to write to a single channel image. Your float
example should work fine, so there's likely a driver bug at play.
As for the scaling problem, that's the fault of a different thing: read color clamping. You must use glClampColor
to tell OpenGL not to clamp floating-point reads. Like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uPalette
Open the Package Manager from Window > Package Manager
"+" button > Add package from git URL
Enter the following https://github.com/Haruma-K/uPalette.git?path=/Assets/uPalette
https://github.com/Haruma-K/uPalette.git?path=/Assets/uPalette#1.0.0
https://github.com/Haruma-K/uPalette/blob/master/LICENSE.md
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page