창작과 기록

Append, Clamp, Lerp 함수 본문

Texture, Shader, Material

Append, Clamp, Lerp 함수

JesseJeong 2019. 10. 4. 11:42

1. append 함수


    i.e. Outputs a single vector from multiple input values/vectors.

         For example, if [A] is a Vector 2, and [B] is a Value (Vector 1),

         the node will output a Vector 3, where [A] is in the red and green channel, while [B] is in the blue channel

_ R,G,B,A 각 체널의 백터 값들을 인풋으로 사용, 인풋값의 백터 값들의 체널을 확장 시켜주는 함수.
  e.g. 인풋값 A가 Vector 2이고, B가 Vector 1의 값을 가질때, 아웃풋은 Vector 3가 된다(3개의 체널을 갖게됨).

 


2. clamp 함수


    i.e. Outputs that its main input value, no longer than Min
         and no more than Max

_ 최소값, 최대값을 세팅하여, 인풋값에 제한을 걸어 아웃풋을 도출하는 함수.




3. lerp 함수


   i.e.  lerp is used to blend between two values or colors.

_ 블랜드 함수와 유사.
   A 와 B 의 인풋값을 C의 상수값을 비율로 사용하여 아웃풋을 도출.

   e.g. 상수 값이 1일때, A 값을 100%로 도출.
         상수 값이 0.5 일때, A와 B의 값을 50%씩 블랜드 하여 도출.
         상수 값이 0 일때, B 갑을 100%로 도출.

 

'Texture, Shader, Material' 카테고리의 다른 글

Parameter 관련 표현식  (0) 2019.10.04
UV, Vector 관련 표현식  (0) 2019.10.04
UV 텍스쳐 애니메이션  (0) 2019.09.27
이미지 포맷  (0) 2019.09.27
블랜드 함수  (0) 2019.09.27