• 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

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: cg

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
avatar image

vikingfabian-com published

Accessing uv offset in Cg shader

Dec 15, '13 shader·offset·cg

4 Replies

1 Votes

avatar image

Rs edited

Randomness in CG shaders

Sep 12, '16 shader·random·cg

3 Replies

0 Votes

avatar image

Tiras69 commented

Getting the world position of the pixel in the fragment shader.

Nov 17, '16 c#·shader·alpha·smooth·cg

1 Reply

0 Votes

avatar image

thallippoli commented

How can I make my own shader include file (.cginc or .glslinc)?

Sep 25, '13 shader·graphics·cg·glsl

2 Replies

7 Votes

avatar image

meat5000 commented

Good resources for learning how to write shaders, Cg, ShaderLab?

Mar 5, '15 shader·graphics·resources·tutorials·cg

4 Replies

11 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

randomdragon answered

How to force the compilation of a shader in Unity?

Aug 30, '21 shader·cg·compiling

5 Replies

0 Votes

avatar image

NGC6543 answered

Second UV set as coordinates for a different texture?

Aug 16, '19 shader·uv·cg·surface·uv2

3 Replies

0 Votes

avatar image

Aily commented

shader inverse(float4x4) function

Apr 4, '15 shader·cg·matrix·glsl·inverse

2 Replies

3 Votes

avatar image

Geoff 3 asked

CGPROGRAM supported #pragma keywords

Apr 8, '11 shader·cg

1 Reply

0 Votes

avatar image

carrollh commented

Shader Help: "Cannot implicitly convert 'float3' to 'float4'"

Feb 3, '15 shader·cg·surfaceshader

2 Replies

1 Votes

avatar image

AnKOu edited

Using custom keywords in cg shaders

Mar 12, '18 shader·shaders·cg

1 Reply

0 Votes

avatar image

Sejster asked

How to get the global position of a vertex in a Cg vertex shader?

Jun 7, '10 shader·uv·vertex·cg

1 Reply

1 Votes

avatar image

Bunny83 commented

Why are texcoords (uvs) stored in float4?

Nov 15, '19 shader·cg

2 Replies

5 Votes

avatar image

ClearRoseOfWar commented

How do i turn off "Receive Shadows" and "Cast Shadows" in a Shader Script??

Jun 2, '22 shader·shadows·cg·casting

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

Cambesa commented

Shader Intellisense / Code completion

Oct 12, '15 shader·editor·cg·intellisense

2 Replies

4 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

meat5000 commented

TEXCOORD 0 1 2 3 for cg shader scripting? Closed

Mar 1, '15 shader·cg·uv coordinates

1 Reply

0 Votes

avatar image

equalsequals answered

Shader Variable Types

Jul 2, '13 shaders·cg·hlsl·glsl

2 Replies

1 Votes

avatar image

Complex77 edited

Shader CG not taking tiling into account

Jan 14, '14 shader·texture·offset·cg·blend

2 Replies

0 Votes

avatar image

Baste edited

Shader programming question for Cg expert : Scaling textures

Apr 14, '15 shader·texture·particle·cg·matrix

5 Replies

1 Votes

avatar image

zettam commented

Shader time related questions

May 12, '13 shader·shaders·time·cg·sin

1 Reply

1 Votes

avatar image

alxdncn answered

Discard Pixels from Fragment Shader Based on Screen Pos

Sep 13, '16 in Help Room

1 Reply

0 Votes

avatar image

schetty answered

I cannot pass parameters to my custom shaders... help please...

Apr 11, '14 shader·cg·parameters·shader-replacement·renderwithshader

2 Replies

1 Votes

avatar image

Bunny83 answered

Blinn-Phong shader (vertex lit) from scratch.

Sep 30, '11 shader·cg·vertex shader

1 Reply

0 Votes

avatar image

FluFFey answered

CG Programming, Points Lights attenuation and light range

Oct 26, '17 shader·range·cg·point light

3 Replies

1 Votes

avatar image

Nullspace commented

Is there a way to pass an array to a Cg shader?

Feb 27, '13 shader·array·color·cg

2 Replies

2 Votes

avatar image

Yanger_xy answered

About Cg shaders and parameters

Mar 9, '13 shaders·cg

3 Replies

1 Votes

avatar image

Witchunter commented

cginc errors

Nov 7, '17 shader·cg

1 Reply

1 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

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.

Follow This Topic

Follow This Topic

Follow by RSS

2 People are following this topic.

avatar image avatar image

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Notable Question   Chefsu
  • Nice Answer   Tubsiwub
  • Supporter   MrTrainMan2
  • Popular Question   NotEth4n
  • Popular Question   PennNeuro
  • Teacher   Stijn500
  • Famous Question   Robstao
  • Famous Question   Mastermarr
  • Famous Question   ZeraTFK
  • Editor   Y2Goldstep


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