gersener waves
C#
Shader "Custom/Waves" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
_Amplitude ("Amplitude", Float) = 1
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf Standard fullforwardshadows
#pragma target 3.0
sampler2D _MainTex;
struct Input {
float2 uv_MainTex;
};
half _Glossiness;
half _Metallic;
fixed4 _Color;
float _Amplitude;
void vert(inout appdata_full vertexData) {
float3 p = vertexData.vertex.xyz;
p.y = _Amplitude * sin(p.x);
vertexData.vertex.xyz = p;
}
void vert(inout appdata_full vertexData) {}
void surf (Input IN, inout SurfaceOutputStandard o) {
fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color;
o.Albedo = c.rgb;
o.Metallic = _Metallic;
o.Smoothness = _Glossiness;
o.Alpha = c.a;
}
ENDCG
}
FallBack "Diffuse"
}
Also in C#:
- Title
- unity raycast 2d
- Category
- C#
- Title
- check if current time is in the morning c#
- Category
- C#
- Title
- install .net sdk ubuntu 20
- Category
- C#
- Title
- c# one line set
- Category
- C#
- Title
- c# index in select
- Category
- C#
- Title
- c# typeof
- Category
- C#
- Title
- making a list of chars in c#
- Category
- C#
- Title
- c# substring from index to end
- Category
- C#
- Title
- try catch c#
- Category
- C#
- Title
- Failed to retrieve Firebase Instance Id
- Category
- C#
- Title
- move towards target unity
- Category
- C#
- Title
- isGrounded script for copy
- Category
- C#
- Title
- inheritance c#
- Category
- C#
- Title
- center an image horizontally and vertically
- Category
- C#
- Title
- matplotlib measure the width of text
- Category
- C#
- Title
- create asp.net which send email and sms using own api
- Category
- C#
- Title
- How to get number of months between 2 dates c#
- Category
- C#
- Title
- unity position ui element
- Category
- C#
- Title
- c# list.foreach
- Category
- C#
- Title
- c# dictionaries
- Category
- C#
- Title
- letter at index of string c#
- Category
- C#
- Title
- how to find a transform unity
- Category
- C#
- Title
- c# httpclient postasync stringcontent
- Category
- C#
- Title
- c# exit program
- Category
- C#
- Title
- roulette algorithm genetic algorithm
- Category
- C#
- Title
- vb.net tostring numeric format string
- Category
- C#
- Title
- c# read a webpage data
- Category
- C#
- Title
- csharp datetime string format
- Category
- C#
- Title
- how to route back to url using Request.Headers["Referer"].ToString() in asp.net core
- Category
- C#
- Title
- C# int to hex
- Category
- C#
- Title
- how to make a game
- Category
- C#
- Title
- c# remove last character from string
- Category
- C#
- Title
- c sharp substring
- Category
- C#
- Title
- c sharp if string equals
- Category
- C#
- Title
- unity prevent system from creation
- Category
- C#
- Title
- string to enum c# 3
- Category
- C#
- Title
- eventos c#
- Category
- C#
- Title
- c# else if
- Category
- C#
- Title
- check connection c#
- Category
- C#
- Title
- unity making homing missile
- Category
- C#
- Title
- check distance to gameobject
- Category
- C#
- Title
- json serialize object capitalization config
- Category
- C#
- Title
- override Microsoft.AspNetCore.Authorization.AuthorizeAttribute
- Category
- C#
- Title
- unity quaternion identity
- Category
- C#
- Title
- orderby make sunday last day c#
- Category
- C#
- Title
- find negative version of integer in c#
- Category
- C#
- Title
- unity how to move an object
- Category
- C#
- Title
- how to add array to list in c#
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- c# mongodb update multiple fields
- Category
- C#
- Title
- how to reload app.config file at runtime in c#
- Category
- C#
- Title
- initialize enum with another enum c#
- Category
- C#
- Title
- c# replace string case insensitive
- Category
- C#
- Title
- entity framework update child records
- Category
- C#
- Title
- unity multiply xyz of two vectors
- Category
- C#
- Title
- zip file ignoring directory starting with dot
- Category
- C#
- Title
- button color uwp c#
- Category
- C#
- Title
- unity set text value
- Category
- C#
- Title
- c# string methods
- Category
- C#
- Title
- wpf use enum description
- Category
- C#
- Title
- how to instantiate a gameobject
- Category
- C#
- Title
- c# get desktop path
- Category
- C#
- Title
- c# negation
- Category
- C#
- Title
- isInstanceOf nunit
- Category
- C#
- Title
- how to disable a gameObject unity c#
- Category
- C#
- Title
- c# use hashtable check if key exists
- Category
- C#
- Title
- how to access first child of parent unity
- Category
- C#
- Title
- C# webclient immitate browser
- Category
- C#
- Title
- Instantiate c#
- Category
- C#
- Title
- c# format number with leading zeros
- Category
- C#
- Title
- unity set object scale
- Category
- C#
- Title
- serilog loglevel order
- Category
- C#
- Title
- generate a dropdown list from array data using razor .net mvc
- Category
- C#
- Title
- c# web form compare dates
- Category
- C#
- Title
- unity rotate towards mouse
- Category
- C#
- Title
- c# find duplicates in list of strings
- Category
- C#
- Title
- how to load the active scene unity
- Category
- C#
- Title
- radians to degree c#
- Category
- C#
- Title
- c# type of generic is string
- Category
- C#
- Title
- c# regex replace
- Category
- C#
- Title
- freeze position unity c#
- Category
- C#
- Title
- c# split large file into chunks
- Category
- C#
- Title
- unity face direction of movement
- Category
- C#
- Title
- see if two string arrays are equal c#
- Category
- C#
- Title
- How to execute a script after the c# function executed
- Category
- C#
- Title
- leantween sequence
- Category
- C#
- Title
- c# append array
- Category
- C#
- Title
- edit form item from class C#
- Category
- C#
- Title
- Basic fps camera C#
- Category
- C#
- Title
- switch case c# range
- Category
- C#
- Title
- c# or
- Category
- C#
- Title
- where keyword in c#
- Category
- C#
- Title
- c# add object to array
- Category
- C#
- Title
- how to open new form on button click in c# xamarin
- Category
- C#
- Title
- rotate to face direction
- Category
- C#
- Title
- copy a list in c# unity
- Category
- C#
- Title
- c# ^ operator
- Category
- C#
- Title
- xamarin hide back button
- Category
- C#
- Title
- c# try catch error
- Category
- C#
- Title
- open zip file in c#
- Category
- C#