• 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

temptest123 commented

shaderlab: Matrix-vector multiplication in fragment shader on iOS not working?

Jan 13, '13 cg·matrix·fragment·glsl·gles

0 Replies

0 Votes

avatar image

KEric answered

_ObjectSpaceLightPos[0] not working

Apr 23, '14 lighting·light·shaderlab·cg

2 Replies

1 Votes

avatar image

Caiuse answered

Blended texture Shader

Jan 4, '13 shader·terrain·cg

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

Martin-Kraus published

what would you choose to write unity shaders GLSL, HLSL/CG or Surface lang?

Dec 5, '12 shaders·cg·hlsl·glsl

1 Reply

0 Votes

avatar image

Armand commented

is the Cg noise() function supported?

Jun 16, '13 cg·noise

1 Reply

0 Votes

avatar image

kramcomposer answered

Shader Compile Error, Parsing

Oct 30, '12 shader·cg·parsing error

1 Reply

0 Votes

avatar image

Prince_of_Persia published

Converting mirror shader into CG form

Oct 19, '12 shader·mirror·cg

0 Replies

0 Votes

avatar image

keyp3r published

Depth of Field 3.4 and the OutlinedSilhouetted shader

Oct 5, '12 shaders·cg

0 Replies

0 Votes

avatar image

pantaryl asked

Bump Map, Specular and Shininess Shader

Oct 4, '12 texture·shaderlab·cg·specular·bumpmap

0 Replies

0 Votes

avatar image

mabulous published

unity_LightmapMatrix in Cg ?

Jan 9, '13 shader·lightmap·cg

1 Reply

1 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

Dragonlance answered

Shader problem with alpha blend and zwrite iOS

Aug 13, '12 shader·cg·glsl·zwrite

1 Reply

0 Votes

avatar image

ironmagma published

Custom ambient lighting color in a Cg shader

Nov 20, '12 shader·lighting·cg·lights·ambient

2 Replies

0 Votes

avatar image

zpinner answered

Accessing Light in Cg Shader

Jul 7, '12 shader·lighting·cg

1 Reply

0 Votes

avatar image

ScroodgeM commented

Sizeof float in cg shader

Aug 1, '12 shader·float·cg·glsl

1 Reply

0 Votes

avatar image

Inferis commented

Is there a way to set an alpha color?

Nov 29, '12 shader·color·alpha·cg·transparancy

2 Replies

0 Votes

avatar image

caseyc answered

'discard' keyword cg error

Jul 2, '12 shaderlab·cg·fragment·glsl

1 Reply

0 Votes

avatar image

Rs commented

Depth issues with a shader

Apr 17, '13 shader·cg·depth·specular·draw order

1 Reply

0 Votes

avatar image

unimechanic converted comment to answer

Can sampler2DArray be used?

Aug 13, '14 shader·cg·glsl

2 Replies

3 Votes

avatar image

Liam-Lam answered

Ambient Occlusion Map in Shaders

Jul 27, '19 cg

1 Reply

2 Votes

avatar image

MountDoomTeam answered

Geometry Shader

Mar 5, '13 shaders·cg

3 Replies

2 Votes

avatar image

ScroodgeM answered

Best way to make an unlit Cg shader

Jul 20, '12 shader·cg·fragment·unlit·sky

2 Replies

0 Votes

avatar image

ckfinite asked

GPU texture caching

May 30, '12 texture·gpu·cg·cache

0 Replies

1 Votes

avatar image

dr-electro edited

Multiple tex2D commands in fragment shader needed, is there a workaround?

May 16, '12 shader·ios·cg

0 Replies

0 Votes

avatar image

Ferb commented

Texture coordinate sampling in cg surface shader

Sep 25, '14 texture2d·cg·surface shader·sampling

1 Reply

2 Votes

avatar image

x5lcfd commented

How do I add transparency to a cg vertex lit shader

Jun 4, '16 shader·transparency·alpha·cg·unlit

2 Replies

3 Votes

avatar image

ScroodgeM answered

Problem with lighting in CG Shader

Jul 20, '12 shader·lighting·shaderlab·cg

1 Reply

0 Votes

avatar image

AnKOu edited

Using custom keywords in cg shaders

Mar 12, '18 shader·shaders·cg

1 Reply

0 Votes

avatar image

ScroodgeM answered

Separate texture coordinates in shaders

Jul 20, '12 shaders·particle·shaderlab·cg·additive

1 Reply

0 Votes

  • »
  • ‹
  • 8
  • 9
  • 10
  • 11
  • 12
  • ›

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