Browsing articles tagged with " color"
Mar
18
2020

Shader: Color Cycling

Color Cycling Shader test, because. Shader Source:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Effects/ColorCycle.shader How it works?Gray color value is used to pick color from the gradient, if gray texture pixel is 0.5, then you get that turquoise color from gradient texture.

Feb
18
2020

Debug.Log: Show actual color from Color variable

Had to debug what color is the script returning for mouse pixel position, but printing out the value didn’t really help:Debug.Log(col);Since the output is like this (you don’t know whats the actual color)RGBA(0,349, 0,204, 0,416, 0,000) Enter Debug.Log with <color></color> and utf8 block:Debug.Log(“<color=#”+ColorUtility.ToHtmlStringRGB(col)+”>██████████</color> = “+col); […]

May
25
2019

Enable HDR Color picker for Shader or Script

I needed HDR color for some old Unlit/Color-shader, and for c# script also, found out that you can add this attribute for the shader: And for the script: More info:https://docs.unity3d.com/ScriptReference/ColorUsageAttribute.htmlhttps://docs.unity3d.com/Manual/SL-Properties.html Also make sure your Camera has [x] HDR enabled

Nov
20
2018

Use adb logcat with Colors

Had problems finding some Debug.LogError messages in the android logcat output, so googled around and sure enough you can enable output colors easily! Just add -v color parameter: adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG -v color Note: Default windows Command Prompt doesn’t support […]

Oct
19
2018

HSV Debugging and Color Match Shader

Quick test for color matching using shader, by converting colors into HSV and comparing target color with h-s-v threshold values. See Shader source at the bottom. (main image: Changing target color, shows inverted color for the texture in that matching hue position) Shader has different […]

Jul
15
2014

[Asset Store] Mobile Paint *now free

Simple touch paint program, optimized for mobiles. — Github: https://github.com/unitycoder/UnityMobilePaint Asset Store *Deprecated: https://assetstore.unity.com/packages/tools/integration/mobile-paint-19803?aid=1101lGti Forum thread: http://forum.unity3d.com/threads/released-mobile-paint-with-multi-touch.262645/ — Latest Update: 26/10/2018, this is now free in asset store! Current features: List below is not updated, use Github Issues instead : https://github.com/unitycoder/UnityMobilePaint/issues – Optimized pixel drawing – […]

Sep
1
2012

XYZ Point Cloud Data Viewer (DX11)

Latest version is here >> Check new page here: http://unitycoder.com/blog/2014/03/19/asset-store-point-cloud-viewer-unity/ Quick test for reading XYZ point cloud data and displaying it using DX11 features. Current info: – 1 million points works fine (60fps with no update loop, 20fps with pos.x+1 for each point in a […]

Mar
10
2012

Fake Illumination Based on Object Texture Color

Testing how it would look, if objects “illuminate” light around them (using colored lights), based on texture colors.. Version#1 (info) – On startup, script goes thru target object vertices, triangles, normals, uv’s and creates colored lights – Currently using point lights, should be better with […]

Oct
21
2011

mVertexPainter v1.0 (demo + scene with source)

VertexPainter – basic version 1.0. You could probably do some cool effects with this: – Make it as an editor script (like this: http://blogs.unity3d.com/2011/03/24/ninjacamp-iii-vertex-awesome/ ) – Damage marks on collision – Transparency based on vertex colors – Character customization, paint player colors, car colors.. – […]

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.