-
Slot I tried blow code, but it's not work for me, can anyone could give me some advice? s(
"sample",
fmt("half4 {} = SAMPLE_TEXTURE2D(_{}, sampler_{}, input.uv.xy);", {
i(1, "baseMap"),
d(2, function(args)
return sn(nil, {
i(1, l(l._1:sub(1, 1):upper()..l._1:sub(2, -1), args[1]))
})
end,
{1}),
d(3, function(args)
return sn(nil, {
i(1, l(l._1:sub(1, 1):upper()..l._1:sub(2, -1), args[1]))
})
end,
{1}),
})),
|
Beta Was this translation helpful? Give feedback.
Answered by
L3MON4D3
Dec 15, 2023
Replies: 1 comment 2 replies
-
Mhhh you don't need the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
YanTree
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mhhh you don't need the
l(...)
inside thei(...)
, tryreturn i(1, args[1][1]:sub(1,1):upper .. args[1][1]:sub(2,-1))
(or, replace the wholed(2, ...)
withdl(2, l._1:sub(1, 1):upper()..l._1:sub(2, -1), {1})
, something like that should work too)