• 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

MaT227 asked

Shader - Share values between different pass

Oct 15, '14 shader·variable·cg·pass

0 Replies

0 Votes

avatar image

MaT227 edited

Shader - Object Depth

Oct 2, '14 shader·cg·depth·surface shader·hlsl

0 Replies

0 Votes

avatar image

xerneasicle edited

Hi, I'm doing a geometry shader to be able to perform grass. I have a problem (which I think it is) with the transformation of the vertecies.

Dec 1, '17 in Help Room

1 Reply

1 Votes

avatar image

Krstn commented

Shader breaks on device.

Dec 5, '18 in Help Room

0 Replies

0 Votes

avatar image

gtaharaedmonds commented

Change vertex height with noise texture through shader

Sep 7, '17 shader·material·cg·procedural generation·noise

0 Replies

0 Votes

avatar image

dantamont commented

Why does this code work without any "Pass{}" expressions? And is there a way to add shadow collections?

Aug 8, '15 shaders·sprites·shaderlab·cg

1 Reply

0 Votes

avatar image

RunSwimFly asked

CG compiled to GLSL: hyperbolic functions not found.

Apr 16, '15 unity 5·shader·cg·glsl·#pragma

0 Replies

0 Votes

avatar image

oc70984 published

Steam VR Camera (Vive) and frag shader coordinate weirdness

Oct 24, '16 vr·virtual·cg

1 Reply

1 Votes

avatar image

Fuzzzy published

Unity Shaders, CG color shadow glitch

Aug 8, '15 shadow·cg·shader writing

0 Replies

0 Votes

avatar image

Danisuper asked

Need help with object behind another one shader 2d

Sep 15, '17 2d·shaders·2d sprites·cg

0 Replies

2 Votes

avatar image

AleVerDes published

How to save a variable from the shader?

Jul 2, '14 c#·shader·shaderlab·cg

0 Replies

0 Votes

avatar image

LukasAue asked

Triangulate image in realtime

Aug 30, '17 shader·graphics·cg·realtime·hlsl

0 Replies

0 Votes

avatar image

ys4axis commented

Shader that clips pixels outside of defined polygon

Apr 22, '21 shader·point·cg·algorithm·polygon

0 Replies

0 Votes

avatar image

helarts answered

Projected Texture Shader Issues

Nov 4, '15 shader·texture·cg·fragment

1 Reply

0 Votes

avatar image

ananion asked

How do I initialise a TEX2DARRAY in shader with RenderTextures from C# script

Dec 2, '18 shaders·cg·initialization·2d array

0 Replies

0 Votes

avatar image

pervyTHEshadow edited

Problem with fresnel materials

Feb 3, '18 in Help Room

0 Replies

0 Votes

avatar image

Namey5 commented

Need help with this Shader; camera Solid color is being rendered on skybox.

Apr 3, '16 shader·graphics·cg·fragment

0 Replies

0 Votes

avatar image

jpierre88 answered

Convert Transparent vertexLit subShader to CG script

Jun 30, '16 transparency·cg·vertexlit

2 Replies

0 Votes

avatar image

vanshika1012 asked

Mask Shader Problem in Unity

Jan 6, '17 in Help Room

0 Replies

0 Votes

avatar image

Bletotum published

Var types and math; unexpected results?

Mar 22, '15 shader·math·vector·cg

0 Replies

0 Votes

avatar image

frogsbo edited

Sometimes Shader CG doesn't listen to if condition, Why?

Sep 5, '14 cg

0 Replies

0 Votes

avatar image

Namey5 commented

How can I make a shader pass that emits dynamic light?

Sep 8, '16 in Help Room

0 Replies

0 Votes

avatar image

ExplosiveBarrels2 commented

How to get color of a fragment in CG after it's lit?

Feb 14, '17 shader·cg·fragment

0 Replies

0 Votes

avatar image

CaioRosisca commented

How to overlay textures without border

Dec 10, '14 shader·cg

1 Reply

0 Votes

avatar image

JeffersonTD commented

Blending in a simple shader not working in Unity5 as it used to work in Unity4

Dec 21, '15 rendering·shaders·unity5·cg

0 Replies

0 Votes

avatar image

BastianUrbach answered

what does it mean assigning a half4 to a float

Sep 14, '18 shaderlab·cg

1 Reply

0 Votes

avatar image

Douvantzis published

No acceptable conversion when converting cg shader to glsl

Apr 23, '16 cg·compile-error·hlsl·glsl·gles

0 Replies

0 Votes

avatar image

Jogol edited

GrabPass twirl shader not centering correctly

Oct 20, '17 shaders·cg·fragment·transformation

0 Replies

0 Votes

avatar image

NecrosDk asked

Find out if an object is in front of a target in fragment shader?

Mar 7, '17 shader·cg·depth-buffer·fragment

0 Replies

0 Votes

avatar image

foo-bar edited

Is it possible to use an Int64 data type in CG?

Feb 27, '17 in Help Room

0 Replies

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