• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Cg

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Venat published

Modify some texture pixels in fragment function

Mar 17, '17 graphics·cg·drawtexture

1 Reply

0 Votes

avatar image

DickieMayCry commented

Light direction based Lerp

Jul 12, '13 shader·lerp·cg

0 Replies

0 Votes

avatar image

MaT227 edited

_LightMatrix0 and Directional Light

Jan 5, '16 shader·lighting·shaders·cg·fragment

1 Reply

0 Votes

avatar image

LaurynasLubys answered

Why is this point light square?

Oct 30, '16 in Help Room

1 Reply

0 Votes

avatar image

Owen-Reynolds answered

Learning shaders for unity4

Apr 1, '13 shaders·cg·unity4·learn·resource

1 Reply

0 Votes

avatar image

thrmotta commented

How to render a Cube using Shaders?

Jul 7, '14 shader·cube·cg·geometry shader

0 Replies

0 Votes

avatar image

lestat009 published

can i export animated characters to use them in after effect?

Nov 16, '11 cg

0 Replies

0 Votes

avatar image

gangafinti asked

Shader error : incorrect number of arguments to numeric-type constructor

Dec 7, '15 in Help Room

0 Replies

0 Votes

avatar image

MaT227 commented

Thickness Surface Shader

Oct 9, '14 shader·material·cg·depth

0 Replies

0 Votes

avatar image

robertbu converted comment to answer

per-vertex data(input) in custom shaders?

Aug 24, '14 shader·cg·uniform

1 Reply

0 Votes

avatar image

bpears answered

CG Fragment/vertex shader, using a alpha texture?

Jan 4, '14 alpha·cg·fragment

1 Reply

0 Votes

avatar image

MihajloNen edited

How to add Bump/Normal Map to surface shader? (CG)

Jan 14, '18 shader·cg·surface shader·normal map·bump map

0 Replies

0 Votes

avatar image

cod commented

How can I access Texcoords x and y?

Aug 16, '12 shader·shaderlab·cg·uvs

1 Reply

0 Votes

avatar image

chendryx_disney published

Pass ShaderLab properties to Standard cginc

May 26, '17 shader·shaderlab·cg·properties·standard

2 Replies

0 Votes

avatar image

MikeMarcin edited

Cg tex2Dfetch

Nov 20, '13 shader·cg

0 Replies

4 Votes

avatar image

spalmer published

Efficient code for shortest distance inside a fragment shader

Jun 29, '15 shader·distance·cg·matrix·matrix4x4

1 Reply

0 Votes

avatar image

awplays49 commented

CG Shader that lerps color based on height

Dec 27, '15 cg

1 Reply

0 Votes

avatar image

Jessy edited

Can a CG shader fail to work on hardware?

Jun 25, '13 shader·shaderlab·cg·hlsl·glsl

1 Reply

0 Votes

avatar image

Jetrii published

How can I get GLSL shaders to work in Unity?

Dec 29, '12 shader·cg·glsl

0 Replies

0 Votes

avatar image

HappyMoo commented

General question about shading in unity

Jan 3, '14 shaders·cg·fragment·shading·general

2 Replies

0 Votes

avatar image

moosefetcher answered

TexGen'ed UVs - how to access in surface shader?

Jan 21, '16 shader·uv·cg·surface

1 Reply

0 Votes

avatar image

Tasty Risotto published

CG Shader Programming in Unity

Mar 26, '13 cg

1 Reply

0 Votes

avatar image

benbenben commented

Shader behaves different in other scene / project

Aug 14, '13 shader·lighting·cg

0 Replies

1 Votes

avatar image

uani published

Shader: get nearest point light's color, direction and general custom lighting questions

Sep 26, '16 shader·lighting·color·cg·point light

0 Replies

0 Votes

avatar image

Mogrinnar asked

Having trouble with The Cg Tutorial book's exercises in Unity.

Mar 2, '15 shaders·cg

0 Replies

0 Votes

avatar image

jrdmellow commented

SurfaceOutput.viewDir not the same in deferred Wiki

Dec 8, '13 shader·view·shaderlab·cg

1 Reply

0 Votes

avatar image

juanelo commented

UnityPixelSnap in custom vertex shader behaves differently to implementation in default sprite shader.

Jun 12, '18 shader·sprite·cg·vertex shader

0 Replies

0 Votes

avatar image

phxvyper edited

Adding transparency to vertex shader?

May 17, '16 shader·transparency·vertex·cg·vertex shader

0 Replies

0 Votes

avatar image

ScienceGuy published

Accessing light's range value within a fragment shader?

Aug 31, '14 shader·lighting·range·cg·point light

0 Replies

1 Votes

avatar image

Kajos edited

Sharing variables across shader passes. Is it possible?

May 27, '13 shader·cg·hlsl

0 Replies

1 Votes

  • »
  • ‹
  • 5
  • 6
  • 7
  • 8
  • 9
  • ›
  • »

Followers

avatar image avatar image

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

shader shaders shaderlab hlsl shader programming glsl fragment unity 5 lighting material graphics texture alpha vertex surface shader c# matrix shader writing vertex shader pass surface color uv error blending


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges