Java uses the for loop: print the rules of right triangle / inverted right triangle / regular triangle / inverted regular triangle / rectangle / parallelogram / diamond

The newcomer said that after summing up the rules, it's a little fun~ Usage: nested for loop 1. The outer loop controls the number of execution rounds, and the inner loop controls the number of execution rounds 2. The outer loop controls the number of rows of the graph, and the inner loop controls the number of columns of this row right ...

Posted by jamesm6162 on Tue, 21 Sep 2021 10:28:25 +0200

Reflection in Unity

CubeMap Sampling Unity provides the Unity_GlossyEnvironment function to sample cubemap s. This function is implemented as follows: half3 Unity_GlossyEnvironment (UNITY_ARGS_TEXCUBE(tex), half4 hdr, Unity_GlossyEnvironmentData glossIn) { half perceptualRoughness = glossIn.roughness /* perceptualRoughness */ ; // TODO: CAUTION: remap f ...

Posted by keyont on Mon, 13 Sep 2021 00:21:25 +0200